As soon as you realize you're facing financial difficulties, reach out to your mortgage lender. Explain your situation honestly and inquire about possible options to prevent foreclosure. Some lenders might be willing to negotiate a repayment plan or modify your loan terms.