Foreclosure is the legal process by which a lender attempts to recover the amount owed on a defaulted loan by taking ownership of and selling the mortgaged property.