Legal Framework for Foreign Employment in Morocco
Employment of foreign nationals in Morocco is governed by several key legislative texts. Law 02-03 on the entry and stay of foreigners in the Kingdom of Morocco, on emigration and irregular immigration, enacted by Dahir No. 1-03-196 of 16 Ramadan 1424 (November 11, 2003), forms the regulatory foundation for entry and residence matters. This law defines the conditions for obtaining residence permits, the grounds for refusal, and the appeal procedures. It has been supplemented by several implementing decrees, notably Decree No. 2-09-607 of June 1, 2010.
In parallel, the Moroccan Labour Code (Law 65-99), in its articles 516 to 521, imposes a strict framework for the employment of foreign workers. Article 516 establishes the fundamental principle: any employer wishing to recruit a foreign employee must obtain authorization from the government authority in charge of labour, materialised through the visa stamped on the employment contract. This authorization is only issued in the form of a work contract visa and effectively serves as a residence permit for salaried activities. Article 517 specifies that this authorization may be withdrawn at any time by the competent authority.
The Moroccan legislator has sought to reconcile two objectives: protecting the national job market by applying the principle of national preference, while allowing the contribution of foreign skills necessary for the country's economic development. It is within this framework that ANAPEC (the National Agency for Employment and Skills Promotion) intervenes upstream of any foreign recruitment process, to verify that no Moroccan candidate matches the proposed position. This labour market test, although sometimes criticised for its administrative burden, remains an unavoidable step in most cases.
It should be noted that Morocco has signed several bilateral labour agreements with partner countries, including France, Belgium, Spain, Qatar and the United Arab Emirates. These agreements may simplify or adapt certain procedures for nationals of signatory countries, without exempting them from the obligation to obtain a work authorization.
Types of Residence Permits and Work Authorizations
Moroccan law distinguishes several types of residence permits for foreigners. The registration card (carte d'immatriculation), provided for by Article 6 of Law 02-03, is issued to foreigners authorized to reside in Morocco for a determined period. It is valid for one or two years depending on the case and must be renewed before its expiration. For salaried workers, this card bears the mention 'salarié' (employee) and is conditional upon the presentation of an employment contract endorsed by the Ministry of Employment. The residence card (carte de résidence) is granted to foreigners who can demonstrate uninterrupted and regular residence in Morocco for at least four years (Article 17 of Law 02-03). It confers a right of residence for ten years, automatically renewable.
The work authorization itself takes the form of a visa stamped on the foreign employment contract by the Employment Directorate of the Ministry of Economic Inclusion, Small Business, Employment and Skills. This visa is the keystone of the entire system: without it, no foreigner may legally carry out salaried work in Morocco. The foreign employment contract is a specific document, distinct from the standard contract, which must comply with a template set by regulation. It specifies the employee's qualifications, remuneration, contract duration and repatriation conditions.
For liberal professions and commercial activities, the regime differs. A foreigner wishing to practise a liberal profession must obtain registration with the relevant professional body (bar association, medical council, etc.) and demonstrate reciprocity of treatment between Morocco and their country of origin. Foreign investors benefit from a more flexible regime, particularly under the Investment Charter (Framework Law 03-22) and agreements concluded with AMDIE (the Moroccan Agency for Investment and Export Development).
ANAPEC Process and Obtaining Work Authorization
The procedure for obtaining work authorization for a foreign employee follows several clearly defined steps. The first step falls to the Moroccan employer, who must submit an application to ANAPEC before any foreign recruitment process. This application includes a detailed job offer, the required profile, and justification for resorting to foreign labour. ANAPEC then has a regulatory deadline to conduct the labour market test, meaning to verify whether the position can be filled by a Moroccan national.
If ANAPEC issues a certificate confirming the absence of a matching Moroccan profile, the employer may then proceed with compiling the application file for the foreign work contract visa. This file, submitted to the Employment Directorate, includes the foreign employment contract in multiple copies, the ANAPEC certificate, certified copies of the foreign employee's diplomas (apostilled or legalised depending on the country of origin), a medical certificate, a criminal record extract, identity photos, and company documentation (commercial register, CNSS certificate, tax compliance certificate). Processing time varies between two and four weeks in practice.
Once the employment contract is endorsed by the Employment Directorate, the foreign employee may then apply for their entry visa to Morocco at the Moroccan consulate in their country of residence, presenting the endorsed contract. Upon arrival in Morocco, they must present themselves at the General Directorate of National Security (DGSN) to obtain their registration card within three months. Failure to comply with this deadline exposes the foreigner to administrative or even criminal sanctions.
Exemptions from the ANAPEC test exist. Spouses of Moroccan nationals, holders of the ten-year residence card, nationals of countries that have concluded reciprocity agreements, and senior executives of companies under certain conditions may be exempt from this step. Similarly, intra-group transfers are often facilitated when a multinational company seconds an employee to its Moroccan subsidiary, subject to providing evidence of the capital link between the entities.
Required Documents and File Compilation
Compiling the work authorization application file requires careful attention, as any missing or non-compliant document can result in rejection or significant delay. On the foreign employee's side, the following documents are generally required: a certified copy of a valid passport (minimum six months validity), copies of diplomas and qualification certificates translated into French or Arabic by a sworn translator and apostilled under the 1961 Hague Convention (or legalised through diplomatic channels for non-signatory countries), a detailed curriculum vitae, a criminal record extract dated less than three months, a medical certificate attesting fitness for work, and identity photos meeting current standards.
On the employer's side, the file must include: the foreign employment contract in four signed copies, the ANAPEC certificate or justification for exemption, the company's commercial register, the CNSS registration certificate, the tax compliance certificate, the company's articles of association for recently established businesses, and a cover letter explaining the need to recruit a foreigner. For intra-group transfers, proof of the capital relationship must also be provided (group organisational chart, company registration documents from the parent company).
A frequently overlooked point concerns document translation and legalisation. In Morocco, only sworn translators registered with the courts are authorised to produce official translations. The cost of these translations can be significant when the file contains numerous documents. Furthermore, since Morocco's accession to the Hague Convention abolishing the requirement for legalisation of foreign public documents, the apostille issued by the country of origin authorities suffices for most public documents. However, private documents (contracts, certificates from previous employers) must still be legalised through the traditional procedure.
Duration, Renewal and Special Cases
Work authorization is granted for the duration of the employment contract, not exceeding one year for the first contract. Renewal is possible and follows the same conditions as the initial application, except that the ANAPEC test is no longer required when the foreign employee is already in post and the renewal concerns the same position with the same employer. In practice, it is recommended to initiate the renewal procedure at least two months before the current contract expires, to avoid any interruption in residence legality.
After several successive renewals and regular, uninterrupted residence in Morocco for four years, the foreign employee may apply for the ten-year residence card, which confers a stable right of residence, automatically renewable. This card exempts from the obligation to renew work authorization annually, although the foreign employment contract must still be endorsed.
Several special cases deserve mention. Free trade zones, governed by Law 19-94, offer a more flexible framework for foreign employment, with simplified procedures and tax advantages. Agreements between AMDIE and certain investors may also provide facilities for foreign recruitment. Nationals of Arab League member states sometimes benefit from preferential arrangements under the Arab Labour Convention. Finally, refugees and stateless persons recognised by UNHCR benefit from a right to work enshrined in the 1951 Geneva Convention, to which Morocco is a party.
The case of cross-border workers, particularly in the Ceuta and Melilla areas, follows a specific regime that has been the subject of several negotiations between Morocco and Spain. The situation of seasonal workers, particularly in the agricultural sector, is also governed by bilateral agreements, such as the circular migration programme between Morocco and Spain that involves several thousand Moroccan workers each year.
Penalties and Risks Associated with Irregular Employment
The Moroccan legislator has provided significant penalties to punish irregular employment of foreigners. Article 521 of the Labour Code punishes employers who recruit a foreigner without work authorization with a fine of 2,000 to 5,000 dirhams, multiplied by the number of employees in violation. In case of repeat offence, the fine is doubled and a prison sentence of one to three months may be imposed. Foreign employees in an irregular situation face deportation from national territory, in accordance with Articles 21 et seq. of Law 02-03.
Beyond criminal sanctions, irregular employment exposes both parties to significant civil and social consequences. A foreign employee in an irregular situation has no social coverage (CNSS, AMO) and cannot assert their rights before labour courts in the event of a dispute. The employer is also exposed to tax adjustments and CNSS penalties for failure to declare. The Labour Directorate may also order temporary closure of the establishment in case of serious or repeated violation.
It is therefore imperative for any foreigner wishing to work in Morocco to ensure the regularity of their situation before starting their activity. Likewise, employers must carefully verify that the work authorizations of their foreign employees are valid. Consulting a lawyer specialised in immigration law or labour law is strongly recommended to secure the process and avoid any legal risk.
Recent Developments and Outlook for 2026
Morocco has undertaken significant modernisation of its migration policy in recent years. The National Immigration and Asylum Strategy (SNIA), launched in 2014 under royal initiative, led to two exceptional regularisation campaigns that benefited more than 50,000 irregular migrants. This policy of openness has resulted in facilitated access to the labour market for certain categories of foreigners, particularly African nationals within the framework of South-South cooperation.
The digitalisation of administrative procedures represents another major advancement. The ANAPEC online portal now allows job offers to be posted and application progress to be tracked electronically. Similarly, the Ministry of Employment has established a digital platform for submitting and tracking foreign work contract visa applications. These tools, while still being refined, have considerably reduced processing times and improved procedural transparency.
In 2026, several ongoing projects could modify the regulatory landscape. A bill on asylum, long awaited, should clarify the status of refugees and their right to work. Furthermore, negotiations towards a mobility agreement with the European Union could result in increased facilities for European nationals wishing to work in Morocco, and vice versa. The New Development Model has also recommended a revision of the legal framework for labour immigration to make Morocco more attractive to international talent, in a context of global competition for skills.
For foreigners considering working in Morocco, it is recommended to stay informed about legislative and regulatory developments, which can occur rapidly. Consulting a Moroccan lawyer specialising in immigration law provides personalised advice taking into account the applicant's specific situation, nationality and target industry.
Frequently Asked Questions
How long does it take to obtain a work permit in Morocco?
Can a foreigner start a business in Morocco without a work permit?
Can my spouse work in Morocco if I hold a work permit?
What happens if my employment contract is terminated early?
Do free trade zones offer a more favourable regime for foreign workers?
Need a Lawyer Specialising in Immigration Law?
The process of obtaining a work permit in Morocco can be complex. A lawyer specialising in immigration law will guide you through every step, from compiling your file to monitoring the procedure.
Find a Lawyer on AvocatLibRelated Guides
Divorce Proceedings in Morocco: Complete Guide 2026
Everything you need to know about divorce procedures in Morocco: types of divorce, steps, required documents, and timelines.
15 min readBusinessStarting an LLC in Morocco: Steps and Formalities
Practical guide to creating your limited liability company in Morocco. Capital, bylaws, registration, and legal obligations.
12 min readReal EstateBuying Property in Morocco: Rights and Precautions
Key steps to secure your property purchase in Morocco. Due diligence, sales agreement, and notarial deed.
10 min read
