The legal process that occurs when the borrowers have become delinquent on their loan and the lender repossesses the property and sells it. The proceeds of the sale are then applied to the mortgage debt.