Typically there are two scenarios that can play out. Your lender requires that you pay back your second mortgage in full before the sale of the house or they allow you to pay off your debt using the proceeds from the sale of your house.