You do not become tax resident in Morocco only because you spend more than 183 days there – and staying fewer than 183 days does not automatically mean you are non-resident.
Under Article 23 of Morocco’s 2026 General Tax Code, an individual has a Moroccan tax domicile when they have a permanent home in Morocco, the centre of their economic interests in Morocco, or when their continuous or discontinuous stays in Morocco exceed 183 days during any 365-day period.
Last verified: October 2026
That answer matters before moving to Morocco, working remotely, retiring or organizing investments across two countries. Tax residency is a factual and legal question. It is not decided by one document, one bank account or one calendar-year total.
Important: this guide provides general information, not personalized tax or legal advice. Tax treatment depends on your facts, income, nationality or status where relevant, and the applicable treaty. Rules and interpretations can change. Confirm your position with the Moroccan tax administration and a qualified adviser who can review all countries involved.
Moroccan Tax Residency at a Glance
| Question | Practical answer |
|---|---|
| Is there only a 183-day test? | No |
| Permanent home can matter? | Yes |
| Economic interests can matter? | Yes |
| 183 days measured by calendar year? | No – the CGI refers to any 365-day period |
| Moroccan tax resident taxed only on Moroccan income? | Generally no; domestic law includes Moroccan and foreign-source income, subject to treaties |
| Can a treaty change the result? | Yes |
| Is immigration residency the same as tax residency? | No |
The table is a starting point, not a determination of anyone’s status. Article 23 first sets Morocco’s domestic tax rules. A tax treaty may then affect which country treats a dual-resident person as resident for purposes of that treaty and how particular income is taxed.
The Three Moroccan Tax-Domicile Tests
Article 23 of the 2026 Code General des Impots, or CGI, lists three ways an individual may have a tax domicile in Morocco. Treat them as connected factual tests, not as a checklist where only the day count matters.
Permanent home
A home that is genuinely available as part of a stable living arrangement in Morocco can be relevant. The analysis is wider than the number of nights recorded in one calendar year.
Economic interests
The location where a person’s economic life is substantially organized can matter. This is a factual assessment, not an automatic formula based on one asset or account.
More than 183 days
Continuous or discontinuous stays exceeding 183 days during any period of 365 days can establish Moroccan tax domicile under the domestic rule.
Permanent Home
A permanent home is not limited to property ownership. The important question is whether a dwelling in Morocco is genuinely available to you as a stable home in the factual circumstances.
Owning an apartment can be relevant evidence, but ownership alone should not be treated as an automatic conclusion in every case. A property used only occasionally, a long-term rented family home, and a home where your household actually lives are not necessarily the same factual situation.
This is why the statement “I stayed only 150 days, so I cannot be Moroccan tax resident” is unsafe. The permanent-home test may need to be considered even when the 183-day threshold is not exceeded.
Centre of Economic Interests
The centre of economic interests can become relevant when a person’s economic life is substantially organized around Morocco. The CGI uses this criterion separately from the duration of stays.
Relevant facts may need to be considered together: work or business activity, investments, management responsibilities, principal sources of economic activity and the wider organization of financial affairs. This does not create a shortcut such as “company + bank account + apartment = tax resident.” No single combination in this guide determines the result.
People with businesses, consulting work, property income or investments in more than one country should have their overall facts reviewed rather than choosing the most convenient factor.
The 183-Day Rule in Morocco
The statutory wording is precise: the continuous or discontinuous duration of stays in Morocco must exceed 183 days during any period of 365 days.
- It is more than 183 days, not simply “six months.”
- The days can be continuous or split across several visits.
- The test is not restricted to 1 January through 31 December.
- A rolling 365-day period can cross two calendar years.
Illustrative timing example: suppose someone spends 100 days in Morocco from September to December and another 90 days from January to April. Those stays cross two calendar years, but together they exceed 183 days within a possible 365-day period. The example illustrates how the rolling period works; it does not determine that person’s full treaty or tax position.
Counting days remains important, but it does not cancel the permanent-home or economic-interests criteria. Keep a reliable travel calendar rather than reconstructing it at the end of the year.
Residence Permit and Tax Residency Are Different Systems
A Moroccan residence permit does not by itself decide your tax residency. Immigration status and tax domicile answer different questions under different rules.
A person can hold a carte d’immatriculation, rent a home and remain lawfully in Morocco without that card alone deciding the tax analysis. Conversely, tax rules may apply based on the person’s home, economic interests or stays even if they still think of themselves as a visitor.
For the separate immigration process, required documents and renewals, read the Morocco Residence Permit guide. Do not use approval or expiry of the residence card as a substitute for a tax-residency review.
What Changes If You Become Moroccan Tax Resident?
Article 23 states that individuals with a tax domicile in Morocco are subject to Moroccan income tax on their income and profits from Moroccan and foreign sources. Individuals without a Moroccan tax domicile are generally subject under domestic law on Moroccan-source income and profits. The same article also recognizes taxing rights allocated to Morocco under double-tax conventions.
This does not mean every foreign euro is automatically taxed twice. The source and category of income, exemptions or special rules in the CGI, tax already paid, and the applicable treaty all need to be considered.
Double-Tax Treaties
Domestic Moroccan tax residency and treaty residency are related but not identical questions.
A person may satisfy domestic residence rules in Morocco while another country also considers that person resident under its own law. Where an applicable tax treaty covers the situation, the treaty can include its own residence rule and allocate taxing rights for different categories of income.
Treaties do not all use identical language. Always check the treaty applicable to your country rather than assuming every Morocco tax treaty uses identical tie-breaker rules.
France-Morocco example
Article 2 of the official France-Morocco convention states that an individual’s treaty domicile is where they have a permanent home. If a permanent home exists in both states, the convention looks to the state where the person has the centre of their professional activities and, failing that, where they stay the longest.
This is a treaty-specific example. It should not be copied onto a UK, US, Belgian or other-country situation without checking that treaty’s actual text. The French tax administration’s BOFiP commentary confirms the sequence used for this convention.
A treaty analysis can affect residence for treaty purposes and the treatment of salary, pension, property, investments or business income. It does not remove the need to check filing and documentary obligations in each country.
How Foreign Income Should Be Approached
Once Moroccan tax residence may apply, do not group all foreign income into one category. The correct analysis usually combines:
- the person’s domestic tax residence;
- the country and legal source of the income;
- the type and tax characterization of the income;
- the rules of the Moroccan CGI;
- the applicable double-tax treaty; and
- filing, relief and documentation requirements in each country.
Foreign salary
A salary paid outside Morocco should not be assumed to fall outside Moroccan tax simply because it enters a foreign account. Residence, where the work is performed, the employment facts and treaty rules can all matter.
Remote work and freelance income
Being paid by a foreign employer or foreign clients does not by itself keep you outside Moroccan tax residency. Tax residence, income character, source, work status and the applicable treaty need to be reviewed together.
This guide does not decide whether a specific remote worker owes Moroccan tax or whether an employer has obligations in Morocco. For employment permits, contracts and the wider job context, use the guide to working in Morocco as a foreigner.
Pensions
Do not assume foreign pensions are always tax-free in Morocco or that every pension is taxed in the same place. Treatment can depend on the type of pension, fiscal residence, the convention concerned and the applicable domestic provisions.
The practical lifestyle, residence, healthcare and banking questions are covered separately in the guide to retiring in Morocco.
Rental income from foreign property
The property’s location, Moroccan residence, income classification and treaty rules may all matter. A treaty may allocate taxing rights without necessarily removing every reporting obligation elsewhere.
Dividends, interest and investments
Investment income can involve source-country withholding, Moroccan residence rules, treaty rates or relief mechanisms and documentary requirements. Do not infer the result from where the investment account is held.
Business income
Business income can raise questions beyond individual residence, including the location of activity, a fixed place of business, legal structure and compliance. A foreign company or payment account does not settle those questions by itself.
Foreign Property, Investments and Moving Funds
Moroccan tax residence can make foreign property income, investment returns, dividends and gains relevant to your overall analysis. This first guide does not attempt to calculate every international gain or credit.
Keep tax records separate from exchange-control records. If you bring savings or investment funds into Morocco, retain transfer evidence and bank documents. The Moroccan dirham and currency rules guide explains convertible-dirham accounts, evidence of foreign-currency financing and repatriation mechanics. Those currency rules do not determine tax residence.
For local account types and practical banking documents, see opening a bank account in Morocco as a foreigner. If the funds relate to a home purchase, the separate guide to buying property in Morocco covers title, developer and building checks.
Illustrative Profiles
Illustrative examples only – not individual tax determinations. Each profile still requires all facts and any applicable treaty to be checked.
Profile A: 220 days in Morocco
A Briton spends about 220 days a year in Morocco. The domestic duration test may be triggered. If another country also claims residence, the relevant treaty and complete facts still need review.
Profile B: 160-day retiree
A French retiree spends 160 days in Morocco but has a permanent home and substantial economic life there. Fewer than 183 days does not automatically prove non-residence. The domestic tests and France-Morocco convention may both matter.
Profile C: foreign-paid remote worker
A remote worker spends eight months in Morocco and is paid abroad. The foreign payer does not decide tax residence. Work location, residence tests, income type and treaty rules need analysis.
Profile D: homes in France and Morocco
A person has homes available in both countries. Domestic rules may produce two claims, and Article 2 of the France-Morocco convention may then require a treaty analysis.
What Documents Should You Keep?
- a dated record of travel into and out of Morocco;
- passport stamps where available, tickets and travel confirmations;
- leases, property records and evidence showing when a home was available;
- employment agreements and evidence of where work was performed;
- company, freelance or business documentation;
- bank statements and transfer records;
- foreign tax-residence certificates where relevant;
- pension statements and documentation identifying the pension type;
- foreign property and investment records; and
- tax returns, assessments and proof of tax paid.
These documents do not automatically determine your tax residence, but they can help document the factual situation. Keep them consistently rather than trying to recreate several years of evidence during an enquiry, property sale or treaty-relief claim.
When to Get Professional Advice
Professional advice is particularly sensible before or soon after moving when you:
- could be resident in two countries;
- work remotely or run a business across borders;
- receive a public or private pension;
- own rental property or investments abroad;
- hold interests in foreign companies, trusts or other structures;
- are a US citizen or otherwise retain filing duties based on nationality or status; or
- need to rely on a treaty, foreign tax credit or country-specific exemption.
Ask the adviser to identify the legal basis, treaty article, filing obligations and documents needed. A useful review should explain the position, not simply offer a slogan about the 183-day rule.
FAQ About Tax Residency in Morocco
Is tax residency in Morocco based only on 183 days?
No. Article 23 of the 2026 CGI also refers to a permanent home in Morocco and the centre of economic interests in Morocco. Spending fewer than 184 days does not automatically establish non-residence.
Is the 183-day rule based on the calendar year?
No. The CGI refers to continuous or discontinuous stays exceeding 183 days during any period of 365 days, so the period can cross two calendar years.
Does a Moroccan residence permit make me tax resident?
Not by itself. Immigration residence and tax domicile are separate systems. The residence card can be part of the factual background, but Article 23’s tax tests must be considered separately.
Can I be tax resident in two countries?
Two countries can potentially treat the same person as resident under their domestic laws. An applicable tax treaty may then contain its own residence rule or tie-breaker, which must be checked in the actual treaty.
What if I work remotely for a foreign company?
A foreign employer or foreign bank account does not determine your tax residence. Residence, where work is performed, income characterization, employment status and the applicable treaty may all matter.
Are foreign pensions taxable in Morocco?
There is no safe universal answer. Treatment depends on the pension type, tax residence, Moroccan domestic rules and the applicable treaty. Public and private pensions may not follow identical rules.
Does Morocco tax foreign income?
Under Article 23, a person with a Moroccan tax domicile is subject under domestic law on income and profits from Moroccan and foreign sources, subject to the CGI and applicable tax treaties.
What happens if a tax treaty applies?
The treaty can affect residence for treaty purposes and allocate taxing rights for different income categories. Check the treaty for the country concerned; do not assume every Moroccan treaty contains identical rules.
Do US citizens still have US filing obligations after moving to Morocco?
The IRS says US citizens and resident aliens abroad are generally subject to US filing rules based on worldwide income. Specific thresholds, exclusions, credits and information returns can apply, so US advice may be needed alongside Moroccan advice.
Should I get professional tax advice before moving?
It is particularly useful if two countries may claim residence, you work remotely, receive pensions, own foreign property or investments, run a business, or need to rely on a treaty. This guide cannot determine an individual position.
Official Sources
Tax rules are freshness-sensitive. The following primary sources were checked in October 2026:
- Moroccan Ministry of Economy and Finance / DGI – Code General des Impots 2026, Articles 21-23: income categories, territorial scope, permanent home, centre of economic interests and the more-than-183-days / 365-day rule.
- Moroccan Ministry of Economy and Finance – official publications: source page for the current CGI and tax circulars.
- Official France-Morocco tax convention, especially Article 2: permanent home, centre of professional activities and longest stay for treaty domicile.
- French tax administration BOFiP – France-Morocco convention: official commentary on the convention’s residence sequence.
- IRS – US citizens and residents abroad filing requirements: general worldwide-income filing framework for US citizens and resident aliens abroad.
- IRS – Morocco tax treaty documents: official US-Morocco treaty and technical explanation.
Plan the rest of the move: tax residence is one part of relocation. Use the complete Moving to Morocco guide to organize residence, housing, healthcare, banking, work, schools and transport in the right sequence.

