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.