Measures to avoid double taxation
Regulations: Art. 92.4 Law Personal Income Tax
When the imputation is appropriate, the following amounts will be deductible from the full Personal Income Tax fee corresponding to the taxpayer who makes the imputation of the income:
The tax or taxes of an identical or similar nature to Personal Income Tax or on Companies that, paid abroad by the first transferee non-resident person or entity, corresponds to the part of the net income derived from the amount that must be included in your tax base.
The IRPF or on Companies that, paid in Spain by the first transferee resident person or entity, corresponds to the part of the net income derived from the amount that must be included in its tax base.
The tax or levy actually paid abroad by reason of the distribution of dividends or shares in profits distributed by the first transferee, whether in accordance with an agreement to avoid double taxation or in accordance with the internal legislation of the country or territory of which in question, in the part that corresponds to the amount included in the tax base.
The tax paid in Spain, when the natural person is not a resident, which corresponds to the consideration obtained by the natural person as a consequence of the first transfer of the right to exploit their image or the consent or authorization for its use.
The tax or taxes of an identical or similar nature to Personal Income Tax paid abroad, which corresponds to the consideration obtained by the natural person as a consequence of the first transfer of the right to exploit their image. or consent or authorization for its use.
These deductions will be made even when the taxes correspond to tax periods other than that in which the imputation was made, without them exceeding, as a whole, the full amount that must be paid in Spain for the income imputed in the tax base.
In no case will taxes paid in countries or territories legally classified as non-cooperative jurisdictions be deducted.
See in this regard the definition of non-cooperative jurisdiction included in the first Additional Provision of Law 36/2006, of November 29, on measures for the prevention of tax fraud and discussed in the " List of countries and territories legally qualified as non-cooperative jurisdiction " within the section dedicated to the "Imputation of income by partners or participants of institutions of collective investment incorporated in countries or territories classified as non-cooperative jurisdiction " in this Chapter.
The amount corresponding to the taxes that, in accordance with the above, are deductible will reduce the total net amount, for which they must be recorded in box  of section "M" of the declaration.