AvocatLib
Find a LawyerLegal GuidesBlogAboutContact
LoginLawyer Portal
AvocatLibLegal GuidesWork Visa in Morocco for Foreigners
ImmigrationFebruary 6, 2026|7 min read

Work Visa and Permit in Morocco for Foreigners

Everything you need to know to work legally in Morocco: procedures, documents, timelines and the legal framework in effect in 2026.

AvocatLib Editorial

AvocatLib

Table of Contents

  1. 1Legal Framework for Foreign Employment in Morocco
  2. 2Types of Residence Permits and Work Authorizations
  3. 3ANAPEC Process and Obtaining Work Authorization
  4. 4Required Documents and File Compilation
  5. 5Duration, Renewal and Special Cases
  6. 6Penalties and Risks Associated with Irregular Employment
  7. 7Recent Developments and Outlook for 2026

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?
The overall timeline, from the initial application to ANAPEC to obtaining the work contract visa, varies in practice between six and twelve weeks. The ANAPEC test takes approximately two to three weeks, then the file review by the Employment Directorate requires an additional two to four weeks. Added to this are the timelines for obtaining the entry visa from the Moroccan consulate (one to two weeks) and the registration card from the DGSN (two to four weeks after arrival in Morocco). These timelines may be reduced in cases exempt from the ANAPEC test or under special agreements.
Can a foreigner start a business in Morocco without a work permit?
Yes, starting a business in Morocco as a foreigner does not require a work permit under the Labour Code, since the founder is not an employee. However, the foreigner must hold a valid residence permit (registration card or residence card) and comply with the business creation formalities provided by the Commercial Code. If they wish to hold a salaried management position in their own company (salaried manager, CEO), they will need to obtain a work contract visa. Foreign investors can benefit from AMDIE support and facilities under the Investment Charter.
Can my spouse work in Morocco if I hold a work permit?
The spouse of a work permit holder can obtain a registration card through family reunification, but this card does not automatically authorise them to work. To carry out salaried activity, the spouse must follow the same procedure for obtaining work authorization (ANAPEC filing, contract visa). However, spouses of Moroccan nationals benefit from an exemption from the ANAPEC test, which considerably simplifies the process. The foreign spouse of a foreigner does not benefit from this exemption, unless a bilateral agreement provides otherwise.
What happens if my employment contract is terminated early?
If the employment contract is terminated early, the work contract visa becomes void. The foreign employee then has a period to regularise their situation: either by finding a new employer who will initiate a new contract visa procedure, or by changing status (for example, by applying for a student residence card or one based on family reasons). Failing regularisation, the foreigner is in an irregular situation and may be subject to a removal order. The employer who terminates the contract must notify the Employment Directorate and cover the foreign employee's repatriation costs, in accordance with Article 519 of the Labour Code.
Do free trade zones offer a more favourable regime for foreign workers?
Yes, Morocco's free trade zones (Tangier Free Zone, Kenitra Atlantic Free Zone, etc.) benefit from a derogatory regime that facilitates the recruitment of foreign personnel. Companies established in these zones can obtain work authorizations more quickly and enjoy greater flexibility in managing their foreign staff. However, foreign employees remain subject to the obligation to obtain a work contract visa and registration card. The advantages mainly concern processing times and the assessment criteria for the ANAPEC test, which are relaxed to account for these zones' specific needs for specialised skills.

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 AvocatLib

Related Guides

Family

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 read
Business

Starting 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 read
Real Estate

Buying 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

Sources & References

  • Law 02-03 on the Entry and Stay of Foreigners in Morocco - Official Bulletin
  • Labour Code - Law 65-99 (Articles 516-521)
  • Decree No. 2-09-607 implementing Law 02-03
  • ANAPEC - Foreign Employee Recruitment Process
  • Investment Charter - Framework Law 03-22
  • AMDIE - Foreign Investor Guide to Morocco
AvocatLib

© 2026 AvocatLib. Tous droits réservés.