If the mortgage cannot be refinanced, the property may need to be sold and the proceeds used to pay off the mortgage. This can be a difficult and emotional process for both spouses, but it may be necessary to ensure a fair and equitable division of assets.