Chapter 13 bankruptcy allows for debt restructuring and offers a plan to catch up on mortgage arrears, thus helping to prevent foreclosure.