Expatriation and secondment in Morocco: a tax, social and practical guide for international groups
Sending an executive or a technician to work in Morocco has become routine for European and Middle Eastern groups. Behind the decision of international mobility, however, lie several distinct legal regimes — secondment in the social security sense, expatriation in the tax sense, local contract, short-term assignments — each of which Moroccan law handles under its own logic.
Most of the tax or social security reassessments observed today by the DGI or the CNSS on expatriate populations do not stem from deliberate fraud: they result from a misalignment between HR status, social security status and tax status. An executive « seconded » under a bilateral convention but without a locally-visaed contract, a housing allowance not declared for income tax, a salary transfer to France without Exchange Office clearance: these are the kinds of cases that end in joint-and-several employer reassessment.
This guide is aimed at international HR departments, CFOs and managers of Moroccan subsidiaries. It walks through, in the order the issues arise, the seven key topics of inbound mobility into Morocco: the secondment / expatriation distinction, residence permits, the risk of permanent establishment triggered by the employee’s presence, the tax treatment of benefits in kind and expatriation premiums, the repatriation of savings via the Exchange Office (Office des Changes), Morocco’s distinctive tax advantages, and the end-of-assignment exit.
Table of contents
- Secondment or expatriation: what’s the difference?
- Residence permit and registration card
- The risk of unintended permanent establishment
- Benefits in kind and expatriation premiums
- Transferring savings abroad (Exchange Office)
- Morocco’s distinctive tax advantages
- End of assignment and exit from Morocco
- FAQ
01Secondment or expatriation — Two distinct legal regimes
In everyday language, the terms « secondment » and « expatriation » are used interchangeably. In Moroccan practice, however, they cover very different realities depending on whether you look at labor law, social security or tax law.
Secondment
- The employee keeps a legal link with their home employer.
- Temporary assignment (typically < 3 years).
- Possible to remain under the home country’s social security regime (bilateral convention + coverage certificate).
- Under Moroccan labor law: not recognized — a local contract visaed through TAECHIR is still mandatory.
- Taxation in Morocco as soon as the activity is performed there.
Expatriation
- Termination or suspension of the home contract, new local contract.
- Medium / long-term assignment (> 3 years typically).
- Mandatory affiliation with the Moroccan CNSS.
- Foreign employment contract visaed through TAECHIR, ANAPEC attestation.
- De facto Moroccan tax residence: taxation on worldwide income.
The classic confusion point
An international group « seconds » an executive for 24 months to its Moroccan subsidiary. From a social security standpoint, it obtains a coverage certificate (form SE 350-01 in France): the employee remains affiliated to URSSAF. But under Moroccan labor law, this executive must sign a local contract visaed by the Ministry of Labor. And for tax purposes, as soon as the activity is performed on Moroccan soil, salary income is taxable in Morocco — regardless of where it is paid.
In other words, it is perfectly possible to be seconded for social security purposes and expatriated for tax purposes at the same time. The chartered accountant’s role is precisely to align these three layers without exposing the employer to a reassessment.
Articles 516 to 521 Labor Code · Art. 23 Tax Code · Franco-Moroccan Convention 22/10/2007
02Residence permit and « work » registration card
The visa of the employment contract by the Ministry of Labor (TAECHIR platform) authorizes the foreign employee to work. It does not authorize them to reside. Residence is regularized through a second procedure with the Directorate General of National Security (DGSN), which issues the registration card — commonly called « residence permit » or « work card ».
Procedure in practice
Within 30 days of entering Moroccan territory, a foreign national holding a visaed contract must file a file with the police prefecture of their place of residence. The file includes: visaed employment contract, passport, proof of address, medical certificate, ID photos, criminal record extract, and civil status documents for accompanying family.
A receipt is issued within 7 to 10 days. It serves as a provisional residence permit and authorizes travel, opening a resident bank account and setting up direct debits. The final permit is issued within approximately 3 months, valid for one year renewable.
Watch out. A foreign employee working in Morocco with a visaed contract but without a registration card is in an irregular residence situation. The employer is exposed on the same footing as the employee. The administrative gap between contract visa (Ministry of Labor) and registration card (DGSN) is not protective: it must be closed within the 30-day legal deadline.
Renewal and accompanying family
The registration card is renewable each year on presentation of the valid employment contract and a CNSS salary declaration attestation. Spouse and minor children join the employee via a family reunification procedure handled by the same prefecture, which issues them a registration card marked « family reunification ».
DGSN · 30-day deadline · 1-year renewable card · Family reunification
03The risk of unintended permanent establishment
This is probably the most sensitive topic for international groups — and the most poorly anticipated. Sending an executive to Morocco can, in some configurations, cause the Moroccan subsidiary (or the parent company itself) to be recognized as having a permanent establishment (PE) in the sense of tax treaties, triggering Moroccan corporate tax on a portion of the group’s profit.
What the OECD treaties say
Most of Morocco’s tax treaties follow the OECD definition of a permanent establishment: a fixed place of business through which the business of an enterprise is wholly or partly carried on. Two situations can shift an expatriation assignment towards PE qualification:
- The « dependent agent » PE — An employee who habitually negotiates or concludes contracts on behalf of the foreign parent company from Morocco. It does not matter whether those contracts are then formally signed abroad: what matters is who drives the negotiation.
- The « fixed place » PE — A continuous presence in Morocco (office, representation, premises) from which a commercial activity of the parent company is carried out, even without a local trade register.
Concrete consequences
If the tax authority (DGI) establishes a permanent establishment:
- A portion of the parent’s worldwide profit is attached to the Moroccan PE and taxed at Moroccan corporate tax rates (standard rate 35% from 2026 for most companies).
- Filing obligations (tax bundle, local accounting) apply retroactively.
- The reassessment includes surcharges (15%), late-payment penalties (5% plus 0.5% per month) and potential joint liability with the local subsidiary.
How to secure. Define very precisely the expatriate’s functions in their local contract, formally limit their signing authority for the parent, document an intra-group services agreement between the subsidiary and the home company (management fees or secondment agreement), and charge on an arm’s-length basis. The chartered accountant documents the transfer pricing grid.
Tax treaty · Art. 5 OECD · Dependent-agent PE · Transfer pricing
Is an expatriate arriving in your Moroccan subsidiary?
DECIMAL secures the alignment of local contract / secondment / tax residence / transfer pricing to avoid any risk of requalification as a permanent establishment.
04Benefits in kind and expatriation premiums — Tax treatment
An expatriate executive’s package rarely stops at base salary. Company housing, vehicle, children’s schooling, mobility premiums, cost-of-living allowances, annual home flights, stock options: all of these have Moroccan income tax implications that must be anticipated to design the net-to-gross package.
General principle
All cash or in-kind benefits granted to the employee are subject to income tax in the same base as the gross salary, unless specifically exempt. The employer re-integrates them into the withholding tax base (Art. 57 of the Tax Code).
Treatment of key package items
| Package item | Income tax treatment |
|---|---|
| Company housing (rent paid by employer) | Actual rent (or rental value) included in taxable salary |
| Company car (mixed use) | In-kind benefit valued as a flat % of VAT-exclusive acquisition value |
| Children’s schooling fees | Taxable, unless an in-house school run by the employer |
| Expatriation / mobility premium | Taxable as salary supplement |
| Home-country return flights | Taxable, except for short assignments reimbursed on justified actual costs |
| Employer-paid CNSS / AMO contributions | Not taxable (social security contributions) |
| Stock options / free shares | Taxable under a specific regime (see below) |
The specific case of stock options and free shares
The Moroccan Tax Code provides a specific regime: the grant is taxed on the date of option exercise (stock options) or definitive acquisition (free shares), based on the value at that date minus any strike price paid by the employee. A specific abatement applies subject to holding conditions. The subsequent disposal gain is taxed at the 20% rate applicable to securities gains.
For a foreign group awarding its own shares to an expatriate executive in Morocco, coordination between the home regime (which may have already taxed the acquisition gain in the prior country of residence) and the Moroccan regime must be analyzed via the applicable bilateral tax treaty. When in doubt, a tax ruling can be considered.
Art. 57 Tax Code · Benefits in kind · Stock options · 20% securities gains
05Transferring savings abroad — The Exchange Office circuit
Morocco still operates a regulated foreign exchange regime: every transfer of currency abroad must be justified and comply with the General Instructions of the Exchange Office (IGOC). For a foreign employee residing in Morocco, this is a major topic that should be raised at the hiring stage.
The savings-transfer rule
A foreign employee of non-Moroccan nationality, holding a visaed employment contract and affiliated to CNSS, may transfer abroad a share of their net salary, after tax and social contributions. This share is, in practice, typically allowed up to 50%, sometimes higher on justification of dependents or expenses in the home country.
Banking circuit
The transfer is carried out by the Moroccan bank holding the employee’s convertible dirham account, on presentation of: visaed contract copy, salary slips, income tax withholding statements, CNSS attestation, and the bank’s transfer form. The bank handles the Exchange Office reporting.
Best practice. Open two bank accounts as soon as you arrive in Morocco: a convertible-dirham account fed by payroll, used for transfers, and a current-dirham account for daily life. This architecture avoids any later discussion with the bank about the traceability of transferable flows.
What cannot be transferred
Savings predating arrival in Morocco, income from undeclared non-salaried activities, or any amount exceeding the allowed share can only be transferred with a special authorization from the Exchange Office. Circumvention attempts (transfer via a third party, cash outflows) are sanctioned under Law n° 15-97 and the IGOC.
IGOC · Law 15-97 on foreign exchange · Convertible dirham account · ~50% transferable
06Morocco’s distinctive tax advantages for expatriates
Morocco is not a tax haven, but its system has several features that make it attractive within an expatriation strategy, particularly when compared to European tax pressure. An HR director building an expatriation package has every interest in highlighting them.
What the expatriate does NOT pay in Morocco
- No wealth tax — Unlike several European countries, held wealth is not taxed annually.
- No inheritance tax in direct line — Transfers of assets to descendants and spouses are not taxed.
- Housing-tax exemption for 5 years on the principal residence built or acquired.
Reduced tax rates
- Securities gains (disposal of shares, units, bonds): 20%.
- Real-estate capital gains: 20% (30% for unbuilt land sold without construction).
- Rental income: 40% abatement for property income tax calculation, and full exemption for 3 years following completion of construction for a property put up for rent.
Tax treaties — the keystone
Morocco has a network of more than 50 bilateral tax treaties avoiding double taxation. For a French, Belgian, Spanish or Canadian executive, this means: taxation in Morocco on salary income earned from Moroccan activity, and exemption or tax credit in the home country, depending on the applicable treaty.
To optimize, obtain a Moroccan tax residence certificate issued by the DGI in the first year, and produce it to the home-country authorities to benefit from treaty rates (in particular on any dividends, interest and royalties received).
No wealth tax · No inheritance tax · 20% gains · 50+ bilateral treaties
07End of assignment and exit from Morocco
An expatriate’s exit is not simply the reverse of their arrival. It is a moment of particular vigilance, because the administrative and tax closing obligations determine the regularity of the situation in the next country.
Social and labor law
Termination of the foreign employment contract — at term or early — must be notified to the CNSS (deregistration) and the Ministry of Labor. End-of-contract payments (notice, paid leave, severance if applicable) follow the Moroccan regime, unless a more favorable contractual clause applies.
Article 518 of the Labor Code recalls that the employer remains liable, if the visa is refused or withdrawn, to repatriate the employee. This clause also activates in case of employer-initiated dismissal during the contract’s validity period.
Tax
An employee leaving Morocco must:
- File an annual income-tax return for the year of departure, calculated pro rata temporis.
- Settle any income-tax withholding not yet applied to final payments (departure bonus, paid leave, etc.).
- Obtain a tax clearance certificate from the DGI, necessary to formalize the final transfer of savings abroad and reassure the authorities of the next host country.
Foreign exchange
An expatriate leaving for good can transfer the entire balance of their convertible-dirham account, on presentation of the above banking and tax documents. The current-dirham account, on the other hand, is not convertible: it must be used locally or closed before departure, with the bank applying IGOC rules to any final transaction.
Classic mistake. Leaving without a tax clearance or final return, and keeping the resident account open. Several years later, a possible return or an information request from the next country’s tax authority can bring the situation back up, with late-payment penalties that are difficult to regularize retroactively.
CNSS deregistration · Pro-rata income-tax return · Tax clearance · Final Exchange Office transfer
FAQFrequently asked questions on expatriation and secondment
What is the concrete difference between secondment and expatriation in Morocco?
Secondment is a social security concept: the employee keeps their home social protection for up to 3 years via a coverage certificate issued under a bilateral convention. Expatriation, in HR practice, refers to a longer assignment with local CNSS affiliation. For tax purposes and under Moroccan labor law, both situations require a local contract visaed through TAECHIR as soon as the activity is performed on Moroccan territory.
Can sending an executive to Morocco create a permanent establishment for the parent company?
Yes, if the employee habitually has the authority to negotiate or conclude contracts on behalf of the parent company from Morocco (« dependent agent » PE), or if their activity is carried out in a fixed place of business of the parent on Moroccan soil. The consequences are heavy: Moroccan corporate tax on a portion of the worldwide profit, tax bundle filing, surcharges. The safeguard is to clearly frame the expatriate’s perimeter in the contract and to put in place an intra-group agreement charged on an arm’s-length basis.
Should an expatriation premium paid by the parent company be declared in Morocco?
Yes, as soon as the expatriate performs their activity in Morocco and the premium compensates that activity, it is subject to Moroccan income tax, regardless of the place of payment. The local employer must re-integrate it into the withholding base, even if it does not bear the cost. A tax equalization clause is often negotiated in the package to neutralize the impact on the employee.
What share of the salary can an expatriate transfer abroad?
As a rule, around 50% of the net salary (after tax and social contributions) may be transferred without special authorization through the convertible-dirham account, under the General Instructions of the Exchange Office. A higher share can be obtained on justification of maintenance expenses in the home country. Beyond that, special authorization from the Exchange Office is required.
Does Morocco offer a specific tax regime for expatriates?
There is no « inpatriate regime » as in France. Expatriates are subject to the same rules as Moroccan residents: progressive income-tax scale, 20% securities gains, taxable benefits in kind. However, Morocco offers several structural advantages: no wealth tax, no direct-line inheritance tax, 5-year housing-tax exemption on the principal residence, and tax treaties with more than 50 countries to avoid double taxation.
Can an expatriate remain affiliated to their home country’s social security?
Yes, if the home country has signed a bilateral social security convention with Morocco (France, Belgium, Spain, Germany, Portugal, Netherlands, Romania, etc.) and if the secondment is formalized by a coverage certificate (SE 350-01 in France) issued before the assignment begins. The derogation is limited to 3 years, renewable under conditions. Without this certificate, affiliation to the Moroccan CNSS is mandatory from the start of the assignment.
What formalities apply to the family accompanying the expatriate?
The spouse and minor children benefit from family reunification handled by the same prefecture as the employee’s registration card. They obtain a registration card marked « family reunification », valid in line with the employee’s card. Schooling for children is open in Moroccan public and private establishments; school fees covered by the employer are an in-kind benefit taxable on the employee’s income.
📚Related reading
- Foreign employment contract in Morocco: regulation, formalities and taxation
- Tax audit in Morocco: the 10 mistakes the DGI does not forgive subsidiaries of foreign groups
- Exchange Office: the 7 infringements that cost companies dear
Secure your international mobility
DECIMAL supports international groups and their Moroccan subsidiaries across the full mobility cycle: secondment / expatriation alignment, local contract, transfer pricing, taxation of benefits in kind, Exchange Office transfers and assignment closure.
International mobility · Secondment · Expatriation · Transfer pricing · Compliance

