Filing bankruptcy prevents your mortgage lender from foreclosing on your home. Under Chapter 13, you can reorganize your debt into a manageable repayment plan, including low monthly payments that allow you to keep your home.