Updated 4 December 2026
In Morocco, signing an employment contract commits your rights, your social protection and your financial stability. Between the CDI (permanent contract), the CDD (fixed-term contract) and the ANAPEC integration contract (Idmaj), each option follows precise rules set by the Moroccan Labour Code. This guide helps you compare the three before you commit to an employer, whether you are starting your career or coming back to work in Morocco after time abroad.
The permanent contract (CDI)
The CDI (contrat à durée indéterminée) is the normal, general form of employment in Morocco under the Labour Code. It has no end date fixed in advance and gives you the most job security, especially when you apply for a bank loan or plan your career for the long term.
Although the Moroccan Labour Code does not always require a written document to prove a CDI exists, you are strongly advised to ask for a written contract in two copies, with certified signatures. It should state your job title, your workplace, your weekly hours, your pay (you can see indicative ranges on our job offers: the Manzil app) and the length of your trial period.
During the trial period, either side can end the contract without compensation, provided a short notice period is respected. Once the trial period is over, any dismissal by the employer (except for serious misconduct that has been properly established) entitles you to notice, to severance pay based on your length of service and to payment for your remaining paid leave. The employer is also legally required to declare you to the national social security fund (CNSS) and to compulsory health insurance (AMO) from your first day.
The fixed-term contract (CDD)
The CDD (contrat à durée déterminée) is an exception, signed for a specific period or to complete a specific task. Under the Moroccan Labour Code, an employer may only use a CDD in clearly defined cases: replacing an employee who is absent or whose contract is suspended, a temporary increase in the company's work, or seasonal work (for example in farming, food processing or hotels in Marrakech, Agadir and Tetouan).
A CDD must be in writing and must state the exact reason for using it and its end date (or the minimum planned length). Outside agriculture, when a CDD is signed for the opening of a new business or the launch of a new product, it can last at most one year and be renewed only once; after that, it automatically becomes a CDI.
Day to day, an employee on a CDD has exactly the same protections as one on a CDI: the legal minimum wage, compulsory CNSS and AMO registration, paid leave in proportion to the time worked, and health and safety rules. On the other hand, unless both sides agree or there is serious misconduct, neither the employer nor the employee can end a CDD before its term without owing damages equal to the wages left until the planned end of the contract.
The ANAPEC integration contract (Idmaj)
The Idmaj contract, run by ANAPEC, the national agency for the promotion of employment and skills, is an integration scheme for young graduates registered with the agency. It is mainly for holders of a higher-education diploma, a vocational training diploma (OFPPT) or, depending on the contract model in force, the baccalaureate.
It lasts at most twenty-four months. Its aim is to let a young graduate gain a first practical experience in a company while lowering the employer's social charges. For the whole length of the Idmaj contract, the employer is exempt from the employer and employee CNSS contributions and from income tax (IR), while the state pays the compulsory health insurance (AMO) contribution so that the trainee stays covered for medical care.
At the end of the integration contract, if the company decides to keep the candidate, it must offer a standard employment contract (CDI or CDD). On Manzil, many companies post offers open to young graduates and say whether the job is under an ANAPEC contract or a direct hire.
The three options side by side
To choose with your eyes open, compare the key features of each status:
- Length of the contract: a CDI has no time limit; a CDD is limited to a defined task or period; an ANAPEC Idmaj contract lasts up to twenty-four months at most.
- Social protection: a CDI and a CDD give full CNSS registration (pension, family allowances, daily sick pay) and AMO cover. The Idmaj contract provides AMO medical cover paid by the state, but it does not build CNSS pension rights during the integration period.
- Ending the contract early: on a CDI, you can resign at any time by giving the legal notice. A CDD runs to its end unless both sides agree or there is serious misconduct. An Idmaj agreement can be ended more flexibly under the conditions set by ANAPEC.
- Who it is for: the CDI and the CDD are open to all workers, with or without a diploma. The Idmaj contract is reserved for graduate job seekers registered with ANAPEC who have not yet used the scheme.
What to check before you sign, and staying safe
Before you sign at the bottom of a contract, take time to read every clause calmly. Check that the company's legal identity (company name, address, tax identification number or ICE) appears on the document. Make sure the salary (gross or net), the weekly working hours, the place of work and the length of the trial period are written in black and white.
Always keep a signed original of your contract, with certified signatures, and your monthly payslips. From your first month at work, open your account on the CNSS insured-person portal to check that your days worked and your salary are declared correctly.
Finally, stay alert to fraudulent offers. Legitimate hiring in Morocco will never ask you for money up front to draw up a contract, hold an interview or process an ANAPEC file. Manzil never asks for money by message or phone. Never pay to get a job. Never send your passport.
More guides
- CNSS: your rights as an employee
- How to avoid job scams
- Working in a call centre
- Finding a final-year internship (PFE)
- Finding your first job
- Employers: hiring in Morocco
Questions people ask
Is Manzil a temping agency or a public body like ANAPEC?
No. Manzil is a private platform that puts job seekers and employers in Morocco in direct contact. We are not a temping agency or a public body, and our services are completely free for job seekers.
Can an employer sign several CDDs in a row for the same job?
No. The Moroccan Labour Code strictly limits the use of CDDs. If the work continues beyond the planned end or the legal limits on renewal, the contract is treated as a CDI.
Can I leave an ANAPEC Idmaj contract if I find a CDI elsewhere?
Yes. The Idmaj contract is an integration scheme; the trainee can end it to take a stable job, giving the notice set in the agreement and informing ANAPEC.
How can I check that my employer declares me to the CNSS?
You can see your career record and your monthly declarations for free on the official CNSS website (the MaCNSS insured-person portal) or in its mobile app, using your registration number.
Do I have to pay to sign a contract or apply on Manzil?
Never. Access to job offers and contact with employers are completely free. Manzil never asks for money by message or phone. Never pay to get a job. Never send your passport.
Get the Manzil app free.