A US startup ready to hire its first engineer in Casablanca. A UK agency that wants to bring on a Moroccan designer without opening a local branch. A remote worker who just moved to Rabat and wants to know what a real employment contract should look like. All three eventually hit the same wall: Moroccan employment contract law does not work like it does back home, and getting it wrong is an expensive way to find out. Here is what actually applies in 2026, with the legal references behind it. This guide is part of our complete overview of Morocco's Labor Code, which also covers working hours, paid leave, and how a contract actually ends.
Morocco's Labour Code recognizes two main contract types. The permanent contract (CDI) is the default and general form under Article 16 of the Labour Code. The fixed-term contract (CDD) is the exception, generally capped at one year and renewable once before it automatically converts into a CDI.
What legally counts as an employment contract in Morocco?
Three elements define an employment contract under Moroccan law: work performed, pay in return, and a relationship of subordination, meaning the employer directs the work and controls how it gets done. That last point is what separates an actual employee from a self-employed freelancer or an umbrella company consultant, both of whom stay legally independent even when they work full time for a single client. Article 15 of the Labour Code also requires the employee to have legal capacity to sign, which rules out minors below the legal working age.
A CDI can technically be agreed verbally. In practice, no serious employer risks it: without a written document, proving the role, salary, or working hours becomes nearly impossible if a dispute lands in court. A CDD, on the other hand, must be in writing, drawn up in two copies, one for each party.
CDI or CDD: what is the difference, and which one applies?
Moroccan law starts from a clear default: the CDI is the rule, the CDD is the exception. Article 16 restricts fixed-term contracts to specific situations: replacing an absent employee, a temporary spike in activity, seasonal work, or the launch of a new company, establishment, or product line. Outside agriculture, a CDD cannot exceed one year initially and can be renewed only once. Past that cumulative window, usually two years, the contract converts automatically into a CDI, with seniority counted from the very first day of the original fixed-term contract.
| Criterion | CDI (permanent) | CDD (fixed-term) |
|---|---|---|
| Duration | No end date | 1 year max, renewable once |
| Form | Written recommended, verbal tolerated | Written mandatory, 2 copies |
| Valid use cases | Ongoing role | Replacement, activity spike, seasonal work, new venture |
| Beyond the cap | Not applicable | Automatic conversion to CDI |
| Agriculture sector | Same | 6-month renewable terms, 2 years max |
Agriculture runs on a slightly different clock: contracts there are issued in renewable six-month blocks, capped at two years total, after which conversion to a CDI becomes mandatory too. It is a detail plenty of foreign agribusiness investors miss, and it tends to surface at the worst possible moment, during a labour inspection.
A CDD that quietly continues past its expiry date, with no signed renewal, converts to a CDI automatically as well. Fast-growing teams that hire quickly and handle paperwork loosely fall into this trap more often than they would like to admit.
What clauses does a Moroccan employment contract need?
The Labour Code does not publish one single exhaustive checklist, but administrative practice and case law converge on a common core. A solid contract should state both parties' full identity, the start date, the job title and its scope, the workplace, gross pay and how often it is paid, weekly working hours, the length of the probation period, and a reference to paid leave entitlements.
For a manager-level hire, probation typically runs three months, renewable once for another three, against as little as fifteen days for a blue-collar worker. Many contracts also add non-compete or confidentiality clauses, particularly in tech and consulting, two sectors where WEEPO has tracked a steady rise in remote hiring into Morocco since 2024.
Does a Moroccan employment contract need to be legalized?
Legal validity between the two parties does not require it. In practice, though, legalizing signatures (at a local commune, through a notary, or via an online legalization service) often becomes unavoidable: a work visa file for a foreign hire, opening a business bank account, or building a case for the labour court. It is worth handling at signature rather than chasing a stamp later, right when it is needed most.
Employee, self-employed, or umbrella company: three different legal boxes
This is probably the costliest mix-up we see on the ground. Signing an employment contract creates subordination and a precise set of social obligations for the employer: CNSS registration, employer contributions, full compliance with the Labour Code. Billing as a self-employed freelancer or going through an umbrella company follows an entirely different legal logic, with no strict subordination link, even though umbrella arrangements replicate some of the comfort of employment (a payslip, CNSS coverage) without the client taking on the full weight of being an employer. Our self-employed versus umbrella company comparison breaks down when each one fits.
For a foreign company that wants to hire Moroccan talent without setting up a subsidiary, a direct Moroccan employment contract requires a registered local entity. That is exactly what an Employer of Record is built to bypass.
CNSS registration: what employers owe from day one
The moment a Moroccan employer hires its first employee, it has thirty days to register with the CNSS. Every employee then needs to be declared monthly through the Damancom platform, as part of the standard payroll declaration. Skipping registration triggers a fine of 500 MAD per undeclared employee, and a late monthly declaration adds a penalty of 50 MAD per employee per month, on top of a 3% monthly surcharge on unpaid contributions, capped at 50%. These figures look small in isolation, but they compound fast once a payroll reaches ten or twenty people.
What about remote workers and digital nomads based in Morocco?
A remote worker living in Morocco while billing a company abroad is not, in most setups, sitting under a Moroccan employment contract at all. If the foreign company treats them as an independent contractor, the relevant framework is self-employed (auto-entrepreneur) status, not the Labour Code provisions covered above. But the moment a Moroccan-based worker starts taking instructions on a fixed schedule, reporting to a manager, and using company equipment the way a regular employee would, the subordination test can kick in regardless of what the paperwork calls the relationship. That grey zone is precisely why a growing number of foreign employers now formalize the arrangement through an umbrella company or an EOR from day one, rather than leaving the classification question open.
Ending an employment contract: what to plan for
A CDI can end through resignation, dismissal, or a negotiated final settlement, each governed by its own notice and compensation rules. An employer who dismisses without valid grounds faces significantly heavier compensation, which we break down in our guide to wrongful dismissal in Morocco. A CDD, by contrast, simply ends on its stated date, with no notice period and no severance owed, unless the contract says otherwise or one side breaks it early without cause.
Under an umbrella company arrangement, the CDI-versus-CDD question plays out differently, since the umbrella firm itself remains the legal employer of record for the consultant, not the end client.
What a solid Moroccan employment contract actually looks like
Beyond the mandatory clauses, a well-built contract typically follows five blocks: party identification and effective date, job description and location, financial terms (salary, bonuses, benefits in kind), working hours and leave, then end-of-relationship clauses covering notice, non-compete, and confidentiality. For a foreign employee hired in Morocco, add the work visa reference and ANAPEC authorization, which confirms no equivalent Moroccan candidate was available for the role.
Drafting this from scratch, with no reference template, is how small but costly gaps creep in, the kind that only surface during an inspection. That is precisely why many foreign companies route the whole thing through a third party, an umbrella company or an EOR provider, rather than carrying the compliance burden in-house.
What changes for a foreign company specifically
A company based in New York, London, or Dubai cannot simply email a Moroccan employment contract to a candidate and get it signed. Without a locally registered entity, it has no legal standing to employ someone directly in Morocco. Two paths remain: set up a subsidiary, which takes time, capital, and a local accounting setup, or work through an intermediary already established there, an umbrella company for a single consultant, or an Employer of Record for a longer-term role. Either way, that third party signs the Moroccan employment contract in its own name and carries the compliance burden, CNSS included.
That distinction sounds procedural from a distance. It stops being abstract the day a Moroccan employee leaves under difficult circumstances, and only the actual contract holder can be taken to the competent labour court.
Getting this right before the first hire, rather than after a dispute forces the question, is the difference between a smooth Moroccan expansion and a costly one.
