The legal process by which a property may be sold and the proceeds of the sale applied to the mortgage debt. A foreclosure occurs when the loan becomes delinquent because payments have not been made or when the homeowner is in default for a reason other than the failure to make timely mortgage payments.