Looking for work in Morocco as a non-Moroccan is not only about applications: hiring a foreigner is regulated by law. Here is how the process fits together, and what depends on your profile.
The legal framework to know before applying
Morocco’s Labour Code (Law 65-99), in Articles 516 to 521, provides that an employer cannot hire a foreign employee without authorisation, in the form of a visa stamped on the employment contract. The contract must follow a model set by regulation. Hiring without it exposes the employer to penalties, so the filing falls first on the employer, but it pays to understand it.
The usual steps
- Offer and selection: you are chosen by an employer established in Morocco.
- ANAPEC attestation: in the general case, the employer advertises the position to show that no Moroccan candidate fits, and the agency then issues an attestation. Some situations are exempt (for example management positions, company managers or partners, spouses of Moroccans, secondments); the exact list and conditions should be checked with ANAPEC.
- Contract visa: the request is filed electronically on the employment ministry’s platform (TAECHIR). Documents such as diplomas or papers in a foreign language may need a sworn translation.
- Residence permit: once the contract is stamped, you apply through the DGSN services. Beyond three months in the country, a residence permit is in principle required.
- CNSS registration: the employer must declare the employee, foreigners included.
According to specialist firms, the whole process can take several months. Do not resign from your current job before you hold a stamped contract.
Where and how to search
- ANAPEC’s portal and agencies, general job boards and professional networks.
- Companies already tied to your home country or sector, through their careers pages.
- Chambers of commerce, alumni groups and expat networks.
Prepare a CV suited to local expectations, diplomas that are legalised or authenticated if the employer asks, and be upfront about your residence status from the first conversations.
What depends on your situation
- Nationality: the authorisation requirement targets foreigners; a dual national holding Moroccan nationality is not affected in the same way. International agreements can also apply.
- Profile: senior manager, local employee, seconded worker or self-employed person do not follow the same procedures.
- Social protection: an employee on a local contract is affiliated with the CNSS; a social security agreement may then affect your rights between two countries.
Key takeaways
- An employer cannot have you work without a stamped contract.
- The ANAPEC attestation is the general rule, with exemptions.
- The contract visa comes before the residence permit and CNSS registration.
- Always confirm the steps with ANAPEC and the ministry.
This article is for information only and is not legal or tax advice; rules change, so have them checked by a professional or the authorities.
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.

