When an employer offers you a job in Morocco, two set-ups come up often: being hired locally by a Moroccan company, or staying employed by your home employer while seconded. The effects on social protection, duration and paperwork are not the same.
Two different logics
- Local contract: you sign with a Moroccan employer, under Moroccan labour law (Labour Code, Law 65-99). Your pay and contributions fall within the Moroccan system, including the CNSS.
- Secondment (détachement): you remain tied to your home employer, who sends you to work in Morocco on a temporary assignment. Under conditions, you can stay in your home country’s social security scheme.
Social security: the central point
Between France and Morocco, the social security agreement of 22 October 2007 governs secondment. According to CLEISS, a seconded employee can remain in the French scheme for an initial assignment of up to three years, with a possible extension of three more years and an exceptional derogation beyond that. The certificate, form SE 350-01, is issued by the French body after the employer applies. Another condition: you must be a French or Moroccan national, or a national of certain states linked to Morocco by an agreement (list on the CLEISS website).
With a local contract, you are in principle affiliated with Morocco’s CNSS. The agreement may then help add up insurance periods, but this depends on each risk (sickness, pension and so on).
Work and residence formalities
- For a local contract, the employer generally follows the authorisation procedure: ANAPEC attestation, then the contract visa on the ministry platform, then the residence permit.
- For a seconded worker, specialist sources say the ANAPEC attestation is not required, but the employee must be able to prove their status; check the applicable procedure with the ministry.
Tax and pay
How your income is taxed depends on your tax residence, which is assessed in particular by length of stay and where your home or interests are. A tax treaty between Morocco and your country may allocate taxing rights. This changes depending on whether you stay paid in France, in Morocco or both. Do not skip it: ask a professional for a simulation.
How to decide
- How long is the assignment expected to last, and could it be extended?
- What is your legal link with your home employer after departure (contract maintained, suspended, resignation)?
- Which social protection do you want to keep (health, pension, unemployment)?
- Which currency and which employer cover your pay, housing costs and return?
- Does your nationality give you access to the agreement’s scheme?
Always have these points set out in writing in the contract or an assignment letter.
Key takeaways
- Local contract: Moroccan law, CNSS, employer-led authorisation procedure.
- Secondment: link kept with the home employer, limited duration, form SE 350-01 for France.
- Nationality, duration and tax often decide the best choice.
- Get everything confirmed in writing before you leave.
This article is for information only and is not legal or tax advice; check your situation with the authorities or a professional.
Go further with WEEPO
WEEPO Maroc supports freelancers, consultants and foreign companies in Morocco: auto-entrepreneur status, salary portage and Employer of Record (EOR), with free tools.

