A foreclosure occurs when a lender takes control over a property from a borrower who has failed to make timely payments. A foreclosure can damage your credit score and result in the loss of your home.