The Mortgage Debt Relief Act of 2007 generally enables taxpayers to exclude income from the discharge of debt on their principal residence. Debt reduced through mortgage restructuring, as well as mortgage debt forgiven in connection with a foreclosure, are qualified for the relief.