The lender must stop the foreclosure process if the past-due balance is paid or if there is a court order or a written agreement signed by the lender. A court order can either be the result of a lawsuit or a bankruptcy filing. A lawsuit requires a hearing and a written order from the court. A bankruptcy filing automatically stops a foreclosure from moving forward [as long as there have not been prior bankruptcy filings within the year]. Common agreements that stop a foreclosure: short sale, deed in lieu of foreclosure, loan modification (for those who can demonstrate hardship).← How to stop a foreclosure?