MREs residing in Spain are subject to IRPF (Impuesto sobre la Renta de las Personas Físicas) on all their worldwide income as soon as they are Spanish tax residents. The Spain-Morocco tax treaty of 10 July 1978, with an annexed protocol (instrument of ratification published in the Spanish official gazette in 1985), precisely determines which income is taxable in which country and how to avoid double taxation.
Costs & fees
| Spanish tax residence certificate (Agencia Tributaria) | Check on sede.agenciatributaria.gob.es | Via sede.agenciatributaria.gob.es |
| IRPF return with foreign income (gestoria / asesoría) | Check with the professional | File with Moroccan income |
| Moroccan income tax on property profits, real estate capital gain | 20% of gain | Exemption if main residence for at least 5 years in Morocco (CGI, art. 63-II-B) |
| Moroccan dividend withholding tax | 15% for an individual (10% for a company directly holding at least 25% of the capital) | Treaty ceiling of Article 10 |
| Agencia Tributaria penalty (undeclared foreign income) | Check with the Agencia Tributaria | Plus late interest |
Timeline
Spanish tax residence: the 183-day rule and its exceptions (art. 4 treaty)
You are a Spanish tax resident if: (1) you spend more than 183 days per year in Spain (physical presence days counted, sporadic absences not deducted); (2) your main economic interests are in Spain (business, employment, main assets); (3) legal presumption: if your non-separated spouse and/or minor children habitually reside in Spain. In case of conflict with Morocco, article 4 sets a cascade of criteria: permanent home, centre of vital interests, habitual abode, nationality.
💡 Tip: The Spanish tax residence certificate is requested on the Agencia Tributaria website (sede.agenciatributaria.gob.es).
⚠️ Warning: Even if you consider yourself a Moroccan tax resident, the Agencia Tributaria can reclassify you if you exceed this threshold.
Employment income: taxed in Spain, deduction for Moroccan tax (art. 15)
Article 15 provides that employment income is taxable in the country where the activity is performed. An MRE working in Spain is taxed in Spain on their salary (IRPF, progressive rates). If you also worked in Morocco part of the year, the Moroccan salary fraction is taxable in Morocco. In Spain, you declare the total; for income taxable in Morocco, Article 23-1 of the treaty provides for exemption with progression: Spain exempts it but may take it into account to determine the rate applicable to your other income.
Spanish retirement pensions: taxed only in Spain (art. 18)
Article 18 allocates private pension taxation to the beneficiary's state of residence. Spanish pensions (Seguridad Social, private Spanish pension plans) received by a Spanish tax resident are taxed only in Spain, even if the retiree spends time in Morocco. Spanish public sector pensions (Spanish civil servants) are taxable in Spain under art. 19-2. Private Moroccan pensions received by a Spanish resident are taxable only in Spain (art. 18), the State of residence; public pensions paid by the Moroccan State for services rendered to that State are taxable in Morocco (art. 19-2).
💡 Tip: If tax residence is transferred to Morocco, Article 18 allocates the taxation of private pensions to the State of residence.
Moroccan real estate income: declared in Spain with deduction (art. 6 and 13)
Article 6 allocates rental income taxation to the state where the property is located. Your Moroccan rental income is taxable in Morocco (Moroccan income tax, with 10% withholding if gross annual rents are below 120,000 DH and 15% from that amount, when the tenant is a legal entity or a taxpayer under the actual or simplified net result regime). BUT: as a Spanish tax resident, you must also declare this Moroccan rental income in your Spanish IRPF (form 100). Article 23-1 of the treaty provides for exemption with progression: Spain exempts this income but may take it into account to determine the rate applicable to your other income. Article 13 provides that capital gains on Moroccan real estate (sale) are taxable in Morocco, at 20% under the income tax on property profits. These gains must also be declared in Spain, Article 23-1 providing for exemption with progression.
💡 Tip: The Moroccan tax payment receipt (DGI receipt) may be requested by the Spanish administration.
⚠️ Warning: MAJOR TRAP: undeclared Moroccan rental income in Spain constitutes an infringement of the Ley IRPF. In case of an Agencia Tributaria audit, the reassessment includes unpaid tax, late interest and the penalties provided by Spanish law.
Moroccan-source dividends and interest (art. 10 and 11)
Article 10 of the treaty provides for a maximum 15% withholding tax on dividends paid by a Moroccan company to a Spanish resident (10% only if the beneficiary is a company directly holding at least 25% of the capital). Article 11 provides a maximum 10% withholding on interest. In practice, the Moroccan company or bank withholds this tax at source. In Spain, these incomes are declared in IRPF (savings base) and Moroccan tax is offset via the international double taxation deduction in form 100. The Spanish tax residence certificate presented to the Moroccan bank can enable the application of the reduced treaty rate.
In depth
The most common trap for MREs in Spain is not declaring Moroccan real estate income. Many wrongly believe that since this income is taxed in Morocco, they do not need to declare it in Spain. That is incorrect: as Spanish tax residents, they must declare their worldwide income. The treaty provides a double taxation deduction, but it must be explicitly claimed in form 100. Additionally, MREs residing in Spain who own real estate or bank accounts in Morocco may be subject to form 720 (declaration of assets abroad) above a threshold set by Spanish regulations; the thresholds, dates and penalties can be consulted on the Agencia Tributaria website.
❌ Common mistakes to avoid
- ✕Not declaring Moroccan rental income in Spanish form 100: an infringement exposing you to reassessment with penalties and late interest.
- ✕Ignoring the 183-day rule and considering yourself a Moroccan tax resident when you live and work in Spain.
- ✕Not declaring Moroccan income in form 100: the exemption provided by the treaty does not dispense with declaring it.
- ✕Selling a property in Morocco without declaring the capital gain in Spain: TPI paid in Morocco does not exempt you from the Spanish IRPF declaration.
- ✕Not keeping proof of payment of Moroccan taxes (TPI, withholding tax certificates): essential in case of an Agencia Tributaria audit.
🔗 Official links and resources
Agencia Tributaria - Spain-Morocco Convention
Official treaty text and protocol, Agencia Tributaria practical guides
Agencia Tributaria - Renta Web (form 100)
Annual IRPF campaign, online form 100 filing, tax simulator
Agencia Tributaria - Electronic office
Online procedures and certificates of the Spanish tax administration
Moroccan DGI
Moroccan General Tax Directorate
❓ Frequently asked questions
Need an expert for your project?
Find a Moroccan professional verified by LesMRE to guide you step by step.
Find a verified expertCreate your free account
Registration is 100% free and opens every guide, kept up to date whenever the rules change, with the full detail of each procedure for Moroccans abroad.