Foreclosure is a legal process through which a lender attempts to recover the balance of a loan from a borrower who has stopped making payments and has defaulted on the mortgage or deed of trust. When a borrower fails to meet the terms of the loan agreement, the lender has the right to take possession of the property through foreclosure and sell it to recoup the outstanding debt.