If you have been through bankruptcy or had a foreclosure or similar mortgage problem, you may be able to get an FHA-insured loan sooner than a conventional loan. It’s best to have started rebuilding your credit with other credit accounts like a car loan or a credit card, and make sure you pay your debts on time.