Maryland has a homestead exemption that may allow you to keep your home in bankruptcy if you do not have equity. If you have equity, you are limited in the amount you may retain. If the house is titled in both spouses’ names, and one spouse is filing for bankruptcy, they may keep the house if there is no other joint debt between the spouses other than the mortgage.