Non-compete clauses show up in more and more Moroccan contracts, including for freelancers working through an umbrella company or hired remotely via an Employer of Record. Few employees, and even fewer independent contractors, actually know what one of these clauses is worth in front of a Moroccan court.
Morocco's labor code sets no specific rule for non-compete clauses. No maximum duration, no mandatory payment. Validity rests on general contract law and on a judge's case-by-case assessment, built around three criteria: a reasonable duration, a defined territory, and a precisely described activity.
What does Moroccan law actually say about non-compete clauses?
This is the detail that surprises most employers and employees alike: law 65-99, Morocco's labor code, has no article dedicated to non-compete clauses. Unlike dismissal rules or paid leave, this is a genuine blind spot in the text.
In practice, the clause falls back on general contract law, meaning the broad principles of freedom to contract and their limits. Courts weigh proportionality: the restriction must protect a legitimate business interest (client relationships, know-how, trade secrets) without stripping the employee of the ability to earn a living. According to the Jawhari law firm in Casablanca, a clause with no fixed duration or no clear territorial limit gets treated as abusive, whatever wording it uses (source: avocat-jawhari.com, 2026). And as Rekrute points out in its own career guidance on the topic, the absence of a dedicated statute means case law and practice carry more weight here than the text of the law itself.
What conditions make a non-compete clause enforceable in Morocco?
A Moroccan judge reviewing a non-compete clause generally looks at four things. None of them comes with a fixed legal number, but getting any of them wrong, or leaving them out, weakens the clause fast.
| Criterion | What practice expects | Risk if missing or excessive |
|---|---|---|
| Duration | Fixed and reasonable (often 6 to 24 months, role-dependent) | Clause ruled abusive, unenforceable |
| Geographic scope | Clearly defined and consistent with the actual business | Overly broad territory, likely void |
| Restricted activity | Specifically described (not "any competing activity") | Narrowly read or disregarded by the court |
| Financial compensation | Not legally required, but strongly recommended | Clause seen as unbalanced, weaker in a dispute |
That last line matters for anyone used to French or American contract templates. Unlike France, where financial compensation is a condition of validity, Moroccan law does not require it. But paying an allowance during the restricted period makes the clause considerably more credible if it ever reaches a courtroom.
A concrete case helps here. Sarah, a strategy consultant based in Casablanca, signed an employment contract under Moroccan law with an 18-month clause limited to HR consulting in the Casablanca-Settat region, with no financial compensation attached. If challenged, that clause would stay vulnerable on the compensation point alone. Its duration and territory, though, both sit within what practitioners generally consider reasonable.
Duration tolerance also shifts with the role. A sales lead managing a sensitive client portfolio can reasonably face a longer restriction than a backend developer who never had direct client contact. Judges look at actual access to strategic information, not just the job title on the contract.
Can a Moroccan freelancer or self-employed contractor be bound by a non-compete clause?
This is where things get murkier, and it is exactly the angle that generalist law firms almost never cover. A self-employed contractor (auto-entrepreneur) in Morocco is not an employee. There is no subordination relationship, so no employment contract under law 65-99 applies.
A non-compete clause imposed on a self-employed contractor instead sits inside a service agreement, governed by general obligations law rather than labor law. The reasoning stays close to the employee case (duration, territory, activity, proportionality), but the balance of power is different. A client cannot invoke a subordination link to justify a restriction as broad as the one it could ask of an actual employee. Plenty of foreign clients miss this and copy-paste a clause written for a French or American permanent contract straight into a Moroccan freelance agreement. A contractor who receives one of these is better off negotiating down the duration and the territory before signing, rather than hoping to challenge it later.
In short: a Moroccan self-employed contractor can legally be bound by a non-compete clause, but it falls under the general obligations code rather than law 65-99, the labor code, since no subordination relationship ties the contractor to the client (source: law 65-99 and general contract law).
Take Yassine, a freelance developer in Rabat invoicing three European clients as a self-employed contractor. One of them sends a service agreement with a 36-month non-compete clause covering "any activity related to software development," with no geographic limit at all. A clause like that would likely be ruled excessive if it ever landed in front of a Moroccan court: the duration, the described activity, and the missing territory all fall short of what practice considers reasonable. But rather than sign now and hope to void it later, Yassine is better off asking for a 12-month version limited to the specific technical scope that actually matters for that engagement.
Does the clause work the same way through an umbrella company or an EOR contract?
Under an umbrella company arrangement, the consultant signs a genuine employment contract with the umbrella company itself, not with the end client. A non-compete clause, if there is one, belongs in that employment contract, not in the service agreement between the umbrella company and the client. It is a detail many new umbrella-company consultants miss when they skim their paperwork.
With an Employer of Record, the logic is similar: the EOR is the legal employer in Morocco, so its employment contract is what carries any non-compete clause. A foreign company hiring through a Moroccan EOR cannot impose a clause directly on the hired talent. It has to work through the terms negotiated with the EOR provider, within what Moroccan practice tolerates. In practice this rarely comes up, since EOR agreements mostly protect client data confidentiality rather than restricting post-assignment activity.
In summary: under either an umbrella company or an EOR arrangement, it is always the employment contract signed with the legal Moroccan employer, the umbrella company or the EOR, that can carry a non-compete clause, never the commercial agreement with the end client (source: observed umbrella-company and EOR practice in Morocco).
For a US or European company hiring a Moroccan developer or consultant through an EOR, the instinct is often to copy the non-compete template used back home. That is the wrong move. A clause built for California or French law will not automatically survive scrutiny from a Moroccan judge, and it is worth asking the EOR provider to adapt the wording to local standards instead of importing a foreign template as is.
What actually happens if an employee breaches a non-compete clause?
Not much, in most observed cases. And that might be the single most useful fact in this entire article for a worried Moroccan employee.
To hold a former employee liable, the employer must prove three things in court: that the clause itself is valid, that the breach actually happened, and that real harm resulted from it. Without a penalty clause setting a fixed amount, proving that harm is often difficult, which is exactly why Moroccan employers rarely pursue legal action even when a clause exists on paper. A new employer can, in rarer cases, be held liable if it knowingly poached an employee aware of the restriction. This question comes up most often right after a resignation, once the departing employee has already announced a move to a competitor.
In urgent situations, say a former employee immediately starts an identical activity with the same clients, an employer can also ask a judge for interim relief to stop the harm while a full case proceeds. This path stays rare in practice, reserved for cases where the damage is visible and immediate.
Put simply: without proof of real, quantifiable harm, a non-compete clause remains largely theoretical in Morocco, which explains the low number of disputes recorded on this ground (source: Jawhari law firm, 2026, and Rekrute's own analysis).
What should you do about an excessive non-compete clause?
Negotiating before signing beats challenging after the fact, every time. Three concrete moves work well under Moroccan practice: cut the duration down to what the role genuinely requires, narrow the territory to where the business actually operates, and ask in writing for some form of compensation, even symbolic, for the restricted period.
If the clause is already signed and looks abusive, an employee or contractor can challenge it in court if a dispute arises, pointing to the missing reasonable duration or geographic limit. But waiting for a conflict to act always costs more, in time and stress, than negotiating upfront.
Umbrella companies and EOR providers carry their own share of the risk here too. Reusing a generic non-compete template without adapting it to the actual role being staffed protects no one well: not the end client, not the provider, and not the consultant signing a document they may not fully understand.
The takeaway: negotiating duration, territory and compensation before signing works better than challenging a clause afterward, since Moroccan judges rule case by case with no fixed legal scale to apply (source: general contract law, in the absence of a dedicated regime under the labor code).
A standard employment contract, an umbrella-company assignment, a freelance deal with a foreign client: in every one of these, reading the non-compete clause carefully before signing stays the simplest way to avoid an unnecessary dispute later.
Photo by Thirdman via Pexels
