Say a start-up in Berlin finds a front-end developer in Casablanca. Quick, cheap, no payroll: sign a service agreement, receive an invoice every month, done. That is how many foreign teams hire contractors in Morocco, and for a defined project it works well. The trouble tends to start around month nine, when the project has quietly turned into a job.
To hire contractors in Morocco, a foreign company signs a written service agreement with an independent worker, usually a registered auto-entrepreneur, and pays against invoices. That stays safe only while the worker is genuinely independent. Once you set their hours and methods, a court or a labour inspector may treat them as an employee.
If the role already looks like a job rather than a project, WEEPO can act as your employer of record in Morocco: it signs the Moroccan employment contract and runs CNSS and payroll, while you keep directing the work.
How do you hire contractors in Morocco legally?
In practice you engage a self-employed individual registered as an auto-entrepreneur. Law 114-13 defines that status as a natural person working on their own account whose collected annual turnover stays under 500,000 MAD for industrial, commercial and craft activities, or 200,000 MAD for services. A developer, designer or consultant sits under the 200,000 MAD line.
The contractor invoices you directly, files their own declarations and handles their own social cover. Your company runs no payroll and registers nobody with the CNSS. The table sets that against the other route for one person.
| Contractor under a service agreement | Employee through an EOR | |
|---|---|---|
| Contract | Service agreement under civil law | Moroccan employment contract |
| Who directs the work | The contractor, around deliverables | You, day to day |
| Social security | The contractor's own responsibility | The employer registers and pays CNSS |
| Payment | Invoice, no payslip | Monthly payslip |
| Typical fit | Defined project, several clients | Long-term team member |
Neither column is better in the abstract. They answer different needs, and the trouble comes from using the left column for a need that belongs in the right one.
Does the 200,000 MAD ceiling affect you as a client?
Yes, because it limits how long one person can serve you full time under this status. Article 8 of law 114-13 removes someone from the auto-entrepreneur register after two consecutive years above the ceiling, so a single bad year does not end the status, but a full-time engagement will cross the line again.
Take a designer who invoices you 18,000 MAD a month. That is 216,000 MAD a year, already above the services ceiling (the figures are an illustration, not a real case). In year one nothing happens automatically. In year two the same invoices push the person out of the regime, and you are left with a supplier who no longer has the status your agreement assumed.
Your contractor can of course choose another structure, such as a company. But a one-person company that bills one client eight hours a day raises the same question, which is the next section.
When does a contractor become an employee in the eyes of the law?
Moroccan law looks at the substance of the relationship, not the label on the contract. The decisive test is legal subordination (lien de subordination): who directs the work, and when and how it is done. RemotePass and Teamed, two employer-of-record vendors, both describe it this way, so read their guides with that commercial interest in mind.
RemotePass lists the usual warning signs:
- a fixed schedule set by the client;
- work done exclusively for one client;
- tools, equipment or systems supplied by the client;
- ongoing supervision instead of project-based delivery.
No single sign decides the matter. Exclusivity combined with regular hours and company tools is, in RemotePass's words, a strong signal. And the contract title does not rescue you: calling someone a contractor changes nothing if the daily reality is employment.
There is a further difficulty. Teamed points out that no procedure lets you confirm a contractor's status in advance, so you cannot ask an authority for a ruling before you start. The risk is assessed afterwards, by a court or a labour inspector, and only on the facts.
What does misclassification cost a foreign company?
When a contractor is requalified as an employee, the company owes backdated CNSS contributions for the whole relationship, plus paid leave and seniority entitlements, penalties and interest. RemotePass notes that these costs are not capped and grow with the length of the engagement, which is why a late discovery hurts more than an early one.
Employer contributions come to 21.09% of gross salary in 2026, adding up four items: 8.98% on pay up to 6,000 MAD a month, 6.40% for family allowances, 4.11% for AMO health insurance and 1.60% for the vocational training tax, according to the CNSS contribution scale. Only the first item is capped, so the effective rate falls as pay rises.
A worked example, again illustrative. A developer billed you 20,000 MAD a month for twelve months. If that work is requalified as employment, the employer's share per month is 538.80 MAD on the capped branch, 1,280 MAD in family allowances, 822 MAD for AMO and 320 MAD in training tax. That is 2,960.80 MAD a month, or 35,529.60 MAD over the year, before late-payment surcharges, leave entitlements and legal costs. Add a second developer and the bill doubles.
None of this means contractors are a bad idea. It means the arrangement has to match the reality, and you should check that match on a schedule rather than once at signing.
Is there withholding tax on payments to a Moroccan contractor?
RemotePass reports that when one client pays an auto-entrepreneur more than 80,000 MAD for services in a year, the client withholds 30% on the excess. For 120,000 MAD paid, the excess is 40,000 MAD and the withholding is 12,000 MAD.
Whether a foreign company without a Moroccan presence has to apply it in practice is not settled by the guides we read, so confirm the point with a Moroccan accountant before you sign a long agreement with a single freelancer.
How do you hire contractors in Morocco without creating employment risk?
Keep the relationship about results, not presence. RemotePass advises a written service agreement that specifies deliverables, timelines and fees, but not working hours, methods or tools. Then run the engagement the way the paper reads, because a perfect contract contradicted by daily practice protects nobody.
A short working checklist:
- Describe outcomes and milestones, and review the work at milestones instead of supervising it daily.
- Let the contractor use their own equipment and keep other clients.
- Pay against invoices issued in the contractor's own name, never through an internal payroll.
- Set an end date or a review date, and reassess if the work has become continuous.
- Keep meetings to what a client would reasonably need, not the rhythm of a team.
For the clauses themselves (scope, payment terms, intellectual property, termination), see our freelance service contract guide. It is written for the freelancer's side, which is useful for you too: you will see what a careful contractor will ask for.
And for you, concretely?
A service agreement fits when the work has an end, the person has other clients and you care about the result, not the hours. An employer of record fits when the person works full time with your team, follows your calendar and is expected to stay for a year or more. Many companies hire contractors in Morocco first and move to employment later, and that move is where the care is needed. If you plan to hire contractors in Morocco for more than a few months, plan the exit route on day one.
Teamed warns that an EOR prevents the next misclassification but does not erase the last one: moving an at-risk contractor onto employment can read as confirmation that the person was an employee all along, and contributions for months already worked as a contractor can still be claimed. So the sensible time to switch is when the pattern changes, not after a dispute.
The cost question is fair, and it deserves numbers rather than adjectives. The EOR cost estimator models gross pay, charges and fees for a given salary, and our piece on what an EOR really costs in Morocco explains each line. If the goal is a permanent hire, our guide to hiring employees in Morocco walks through contracts, probation and the first 30 days.
An EOR is not the answer to everything. For a six-week project with a specialist who serves other clients, a service agreement is the right tool, and adding payroll would only add cost.
Not sure which side your engagement falls on? Talk to WEEPO with the role, the weekly hours and the expected duration, and you will get a clear view of the options for your case.
Sources and method
The ceilings and the exit rule come from the text of law 114-13, articles 1 and 8, as hosted by the Ordre des experts-comptables (a copy, not the official gazette). The subordination criteria, backdated contributions and the 80,000 MAD withholding come from RemotePass and Teamed, both vendor guides. The Labour Code itself could not be read automatically for this update, so we cite no article number. Contribution rates follow the CNSS scale; the 21.09% total is the sum of its four fixed employer items. Worked examples are illustrations, not real cases. Last checked on 9 November 2026. This is general information, not legal advice: confirm your situation with a Moroccan adviser.
