How the DGT's position has evolved
Current position
The capital gain from the deed in lieu of foreclosure of the primary residence is exempt if a mortgage debt is cancelled and the owner does not have sufficient other assets to satisfy it. The transfer to a third party designated by the bank does not alter the nature of the deed in lieu of foreclosure if the creditor imposes the condition and accepts it as an extinguishment of the debt. The exemption requires that the property be the primary residence of the debtor or guarantor.
The DGT's position has remained constant since 2015. The criterion establishes that the deed in lieu of foreclosure does not lose its nature if it is carried out in favor of a third party, provided that the creditor accepts the condition to extinguish the obligation. It is not required that the transfer be made directly to the credit institution to apply the exemption under article 33.4.d) of the IRPF (Personal Income Tax Law).
Analysis based on 25 of 25 rulings with a stated position. Updated 24 September 2026.