One September morning, the HR director of a business-process outsourcing company in Sidi Maarouf, Casablanca, called his employment lawyer with an unusually direct question: “How do we legally justify replacing 40 call-centre agents with a chatbot?”
The company handled outsourced banking calls. Its new artificial intelligence system could answer routine questions, classify complaints and prepare customer files at a fraction of the previous cost. The commercial logic seemed straightforward. The legal answer was not.
This scenario is no longer hypothetical. A survey reported by Médias24 indicated that around 10% of Moroccan businesses surveyed were considering job cuts connected with artificial intelligence. Banking, insurance, accounting, customer service, logistics, retail and industrial production are among the sectors most exposed. Casablanca and Rabat concentrate much of the BPO and financial activity, while Tangier and Kenitra face similar questions in manufacturing and logistics.
Yet the Moroccan Labour Code never uses the words artificial intelligence, algorithm or automated decision-making. The applicable law remains Law No. 65-99 promulgated by Dahir No. 1-03-194 of 11 September 2003. Lawyers must therefore fit an AI-related job elimination into the existing category of dismissal for a technological, structural or economic reason.
That can be done. But it cannot be done casually. An employer that merely writes “digital transformation” in a dismissal letter has not necessarily established a valid reason. The company may have to consult employee representatives, disclose the project, examine alternatives, apply objective selection criteria and obtain administrative authorisation. If those safeguards are ignored, a technologically sophisticated project can still produce a very traditional result: a judgment for unfair dismissal.
The alarm raised by AI-related job cuts in Morocco
Why the Médias24 figure matters
The reported 10% figure should be treated as a warning rather than as an official forecast of completed dismissals. Even so, it reflects changes already visible in Moroccan workplaces. Banks automate credit-file processing and first-level customer support. Call centres deploy voice bots and generative AI. Logistics businesses use automated scheduling and warehouse systems. Accounting departments test tools capable of reading invoices, reconciling entries and producing draft reports.
Not every new tool eliminates a job. Some systems only assist employees. Others modify the content of a position without removing it. The legal difficulty begins when automation results in an actual reduction in headcount, a material change to the employment contract, or the selection of particular employees for departure.
Moroccan labour law has mechanisms capable of addressing this transition, but they were drafted before generative AI. They were designed mainly for factory modernisation, restructuring and economic crises. Applying them to software requires careful evidence: What functions will the system perform? Which positions genuinely disappear? Why can the affected employees not be reassigned? Who made the selection, and according to what criteria?
The sectors facing the greatest exposure
The most immediate risk lies in work that is repetitive, standardised and digitally measurable. This includes first-level customer assistance, data entry, invoice processing, basic accounting, document classification and certain back-office banking functions. Industrial automation presents a related but older form of technological displacement.
Attention, however: exposure is not the same as legal dispensability. A Casablanca bank cannot lawfully dismiss an employee merely because a consultancy report predicts future productivity gains. Nor can a Rabat call centre eliminate 30 positions, hire a subcontractor to perform substantially the same work and then rely on AI as a convenient label. Courts look at the reality of the operation, not only the vocabulary chosen by management.
What the Moroccan Labour Code actually says
Article 66 and dismissal for technological reasons
Article 66 of the Labour Code is the central provision. It regulates employers in industrial, commercial and craft activities, as well as agricultural and forestry operations and related services, when they employ ten or more workers and contemplate dismissing all or part of their staff for technological, structural or economic reasons.
In substance, Article 66 requires the employer to inform employee representatives at least one month before proceeding with the dismissals, provide the necessary information about the contemplated measure, and consult them in order to examine measures capable of preventing dismissals or reducing their effects. This is an explanatory English rendering; the Arabic and French texts published in the Official Gazette remain authoritative.
Artificial intelligence can fall within the expression technological reasons. The decisive factor is not whether the employer has purchased software bearing the label “AI”. The employer must establish that a real technological change has modified the organisation of production or services and that this change genuinely requires the elimination of identified positions.
Article 66 is not a licence to dismiss. It opens a regulated procedure. For businesses with at least ten employees, consultation must take place with the staff delegates and, where applicable, trade union representatives. The employer must give them meaningful information, not a vague presentation prepared after the decision has already become irreversible.
Article 67: administrative authorisation, not simple notification
A frequent error is to describe the procedure as a mere notification to the labour inspector. That is incomplete. Under Article 67, dismissals contemplated under Article 66 are subject to authorisation by the governor of the prefecture or province, within the statutory framework and on the opinion of the relevant provincial commission.
The application is submitted through the labour inspection service. It must be supported by the documents required to explain the technological, structural or economic grounds and by the minutes of consultation with staff representatives. Where economic reasons are invoked, accounting and financial evidence becomes particularly important.
In clear terms, an employer cannot normally treat collective technological dismissals as ordinary individual terminations and bypass the governor’s authorisation. Doing so exposes the company to a serious challenge, even if the automation project itself is genuine.
The Labour Code provides an administrative decision period of up to two months from the filing of a complete application. In practice, especially in Casablanca, the time needed to assemble documents, hold meetings and obtain administrative treatment can be longer. Labour inspection services handle a considerable caseload. A prudent employer should therefore plan in months, not in days.
Articles 68 to 71: selection, compensation and closure
Article 68 governs the order in which employees may be selected. The employer must take account of professional competence, seniority and family responsibilities. A selection generated by an opaque algorithm may be challenged if it cannot be explained or if it indirectly discriminates against older employees, union representatives, women returning from maternity leave or other protected groups.
Article 69 grants dismissed employees priority for re-employment, subject to the statutory conditions. The right lasts for one year from departure. A former employee should notify the employer of any change of address and keep written evidence that the priority has been invoked. If the employer recreates the same position shortly afterwards but ignores the dismissed worker, that fact may become powerful evidence in litigation.
Article 70 confirms that employees dismissed through this procedure are entitled to the statutory notice and severance compensation. Article 71 addresses the total or partial closure of an establishment where closure results in dismissals, subject to exceptions associated with force majeure.
The Code therefore provides a connected system: consultation under Article 66, authorisation under Article 67, objective selection under Article 68, re-employment priority under Article 69 and financial rights under Article 70. An AI transformation must be tested against the whole system, not against one isolated phrase.
What Article 35 does—and does not—settle
Article 35 states the basic rule that an indefinite-term employment contract may be terminated by the will of either party, subject to the Labour Code provisions concerning notice and abusive termination. It does not allow termination without a legally defensible reason. The employer’s power to end the relationship remains controlled by Articles 39, 41, 63 and, where collective technological dismissals are concerned, Articles 66 to 71.
It is also worth correcting another recurring citation error. Decree No. 2-04-469 is generally associated with statutory notice periods. It should not be presented as if it replaced the collective-dismissal authorisation rules written directly into Articles 66 and 67.
How an AI-related job elimination is legally classified
A genuine technological reason
A technological reason exists where the introduction of new machinery, software, production methods or digital systems produces a demonstrable organisational need to eliminate or substantially transform positions. For example, a Rabat call centre may deploy a conversational system that resolves 60% of routine enquiries and consequently require fewer first-level agents.
The employer should be able to produce the implementation contract, technical deployment schedule, before-and-after organisational charts, task analysis, productivity studies, minutes of management decisions and a precise list of affected roles. Courts are unlikely to be persuaded by a PowerPoint slide stating only that “AI will improve efficiency”.
The burden of proving the reason is heavily influenced by Article 63 of the Labour Code. The provision requires the employer to establish the existence of a valid reason for dismissal when the termination is challenged. The employee, meanwhile, may use all legally admissible evidence to show that the alleged technological reason was fabricated or inconsistently applied.
Published Moroccan case law on generative-AI dismissals remains extremely limited. It would be misleading to pretend that the Court of Cassation has already established a detailed AI doctrine. The existing social-chamber jurisprudence on economic and structural dismissal nevertheless insists on proof of the real reason and compliance with mandatory procedure. Decisions can be searched through the official Court of Cassation case-law portal.
Job elimination versus replacement of the employee
The strongest case exists where the position itself disappears. The weaker case is one in which the employee disappears but the position survives.
Suppose a company dismisses ten accountants on the stated ground that AI now performs invoice reconciliation. Three months later it advertises ten “financial data controller” positions requiring almost identical duties. A court may infer that no genuine elimination occurred. The same concern arises where a human subcontractor takes over the work, or where employees with lower salaries are recruited after the departures.
Conversely, the fact that some residual duties continue does not automatically invalidate the reason. Automation rarely absorbs 100% of a role. The employer must explain how remaining tasks were redistributed and why the former full-time position is no longer objectively required.
A 30-person chatbot project in Rabat
Consider a call centre employing 180 workers. Management plans to eliminate 30 positions after deploying an AI voice bot. Because the establishment has more than ten employees, the employer should trigger Article 66 at least one month before the contemplated dismissals. It must provide the staff delegates and union representatives, if any, with details of the technology, the number and categories of workers affected, the proposed timing, the selection method and the alternatives considered.
Consultation should examine redeployment to sales, quality monitoring, complaint escalation or chatbot supervision. A written record must be prepared and transmitted with the authorisation file through the labour inspection service. Management should not deliver final dismissal letters before the Article 67 process has been completed.
If the company simply calls 30 workers into individual meetings and offers them “amicable departures”, the legal character of the operation does not necessarily change. Courts and labour authorities can look at the collective reality. Consent obtained through pressure or incomplete information may also be contested.
The employee’s financial rights after technological dismissal
Severance compensation under Article 52
Article 52 calculates statutory severance for an employee with at least six months’ service under an indefinite-term contract. The scale is:
- 96 hours of salary for each of the first five years of service;
- 144 hours for each year from the sixth through the tenth year;
- 192 hours for each year from the eleventh through the fifteenth year;
- 240 hours for every year beyond the fifteenth.
The calculation is hourly, which is often misunderstood. The reference remuneration is determined under Articles 53 and following and can include qualifying salary components. A simplistic calculation based only on the last basic salary may understate the amount where the employee regularly received commissions, benefits or variable compensation.
Take an employee earning 8,000 dirhams per month with ten completed years of service. The statutory scale produces 480 hours for the first five years and 720 hours for years six to ten, or 1,200 hours in total. Using an indicative monthly conversion of 191 hours gives an hourly rate of approximately 41.88 DH and an estimated severance payment of 50,256 DH.
This is an illustration, not a payroll statement. The contractual working schedule, reference period, regular allowances and collective agreement must be checked. Employees can also use this resource to calculate their dismissal compensation in Morocco.
Notice compensation
Articles 43 to 51 regulate notice. The applicable notice periods are detailed by regulation and may be improved by the employment contract, collective agreement or internal rules.
For executives and comparable staff, the commonly applicable periods are one month where service is under one year, two months between one and five years, and three months beyond five years. For employees and workers, the periods are eight days, one month and two months respectively. The precise classification of the worker matters; giving an experienced manager the notice applicable to an ordinary worker can create an additional claim.
If the employer requires the employee to leave immediately, it generally owes compensation equivalent to the remuneration and benefits that would have been earned during the notice period. Outstanding paid leave, salary, bonuses already earned and other contractual entitlements must be settled separately.
Unfair-dismissal damages under Article 41
If the court finds that no valid reason existed or that the termination was abusive, Article 41 provides damages calculated at one and a half months’ salary for each year or fraction of a year of service, capped at 36 months’ salary.
This is not a statutory “minimum” that automatically accompanies every technological dismissal. It is the formula for compensation for abusive termination. It may be added to notice compensation, statutory severance and outstanding leave where the legal conditions for each head of claim are met.
An employee earning 8,000 DH with ten years of service could therefore claim 15 months of salary, or approximately 120,000 DH, as unfair-dismissal damages, in addition to other proven entitlements. The final award remains subject to the court’s legal findings and the salary base accepted in the judgment.
Priority of re-employment
Article 69’s one-year priority is frequently forgotten once the dismissal cheque has been issued. Employees should send a registered letter with acknowledgment of receipt stating that they wish to benefit from the statutory priority and should monitor the company’s recruitment pages.
If an equivalent position appears, the employee should apply in writing and preserve screenshots of the advertisement. A job posting published shortly after an alleged AI-driven elimination can support either a re-employment claim or the argument that the original reason was not genuine.
Must an employer train or redeploy staff before dismissal?
The real scope of Article 23
Article 23 of the Labour Code recognises employees’ right to benefit from literacy programmes and continuing training. It does not expressly state that every employer must offer a specific reskilling course before any technological dismissal. Claims that training is an automatic statutory condition of validity should therefore be treated cautiously.
Nevertheless, Article 66 requires consultation over measures capable of preventing dismissals or mitigating their consequences. In an AI project, retraining and redeployment are obvious alternatives. An employer that never maps transferable skills, advertises internal vacancies or considers a short conversion course will struggle to show that consultation was meaningful.
In practice, the issue is evidential. A documented reskilling programme helps establish good faith and the necessity of residual job cuts. The absence of any effort does not automatically create a separate training indemnity, but it can reinforce the employee’s argument that the decision was predetermined or disproportionate.
Law No. 60-17 and continuing vocational training
Law No. 60-17 organises continuing vocational training for private-sector employees and other eligible categories. Morocco also finances training through the vocational training tax and mechanisms such as Special Training Contracts, commonly known by the French acronym CSF. The tax rate commonly applied to the payroll base is 1.6%, although the financing and eligibility rules must be checked against current regulatory and CNSS arrangements.
Employers can also approach the Groupements Interprofessionnels d’Aide au Conseil, or GIACs, for assistance with skills diagnostics and training engineering. The OFPPT provides vocational programmes that may support conversion into digital support, industrial maintenance, data processing or other functions.
There is no universal statutory reskilling period—30 days, three months or six months—before an AI dismissal. That is a legislative gap. A reasonable timetable depends on the complexity of the new role, the employee’s qualifications and the scale of the project.
The role of the works council
Under Article 464, a works council must be established in enterprises habitually employing at least 50 employees. Its statutory remit includes structural and technological changes, human-resources strategy, training and social matters.
For a large AI transformation, consulting only the payroll department is plainly inadequate. The works council should receive an intelligible presentation of the technology, employment impact, proposed training budget and implementation timetable. Its involvement does not replace the Article 66 procedure, but it can make the process more credible and better documented.
AI dismissal procedure: a practical roadmap for Moroccan employers
Step 1: establish the technological project
Before naming employees, the company should document the business and technical project. That file should include the system’s functions, implementation date, affected tasks, projected organisational chart, cost analysis and reasons why the anticipated reduction cannot be absorbed through natural turnover, reduced recruitment or reassignment.
The employer should also audit individual and collective employment protections. Staff delegates, trade union representatives, occupational physicians and other protected employees may be subject to special rules. Maternity, discrimination and workplace-accident protections remain fully applicable; AI does not override them.
Step 2: identify alternatives and objective criteria
Available positions should be listed across the business, not hidden within individual departments. Management should assess whether affected workers can be redeployed with reasonable training. Selection criteria must reflect Article 68 and be capable of external review.
Using an algorithm to rank employees does not transfer legal responsibility to the software vendor. The employer should test the data for bias, document the criteria and retain human review. Performance scores generated from incomplete or unlawfully processed personal data are especially risky.
Step 3: consult employee representatives at least one month in advance
The employer must inform staff delegates and trade union representatives at least one month before proceeding. A proper explanatory note should state:
- the concrete technological reasons for the project;
- the number and professional categories of employees potentially affected;
- the proposed selection criteria;
- the timetable;
- the positions available for redeployment;
- the training and mitigation measures considered;
- the estimated compensation package.
Minutes should accurately record questions, management answers and any alternative proposals. In many Moroccan SMEs, staff delegates are absent even though elections should have been organised. That does not give the employer a safe shortcut. The company should obtain specific advice on how to document compliance and engage the labour inspection service.
Step 4: submit the Article 67 authorisation file
The consultation record and supporting documents are filed through the competent labour inspection service for the governor’s authorisation procedure. The employer should keep stamped copies and proof of the filing date.
The labour inspector may attempt conciliation, clarify missing documents and report on the social impact. The employer should budget for the statutory administrative period and possible requests for additional material. Announcing a fixed departure date before authorisation creates avoidable risk.
Step 5: issue individual decisions and pay entitlements
Once the legal preconditions are satisfied, individual notices should identify the ground clearly and consistently. Each employee must receive the sums legally due and the necessary employment documents, including the work certificate, detailed final account documents and paperwork needed for CNSS and employment procedures.
A receipt for final settlement does not magically extinguish every right. Articles 73 to 75 impose formal requirements and permit denunciation within the statutory 60-day period under the prescribed procedure. Employees should not sign an incomplete or global waiver. If a dispute exists, the employee may add a handwritten reservation such as: “Received subject to all my rights and claims arising from the termination.”
How much could ten dismissals cost?
Assume ten non-managerial employees, each earning 6,000 DH monthly with eight completed years of service. The Article 52 scale gives 912 hours per employee. Using an indicative 191-hour monthly conversion, the hourly rate is approximately 31.41 DH, producing estimated severance of roughly 28,646 DH per employee, or 286,460 DH for ten.
If each employee is entitled to two months’ notice, another 120,000 DH may be due. Outstanding leave and variable remuneration must be added. The direct statutory total can therefore exceed 406,000 DH before legal fees, training measures or any unfair-dismissal award. If all ten employees later obtain damages under Article 41, the exposure can rise dramatically.
How an employee can challenge an AI-related dismissal
Warning signs of a disguised dismissal
A dismissal deserves close examination where the company recruits for the same work shortly afterwards, transfers the activity to human subcontractors, retains less senior employees without explaining the Article 68 criteria, or produces no technical evidence of automation. Other warning signs include consultation conducted after decisions were announced and pressure to sign an immediate “voluntary departure”.
Personal conflict is another clue. If an employee received positive evaluations until a disagreement with management and is suddenly the only person selected by an alleged AI plan, the true motive may not be technological.
Collect evidence without breaching the law
The employee should retain the employment contract, amendments, payslips, CNSS declarations, job description, evaluations, dismissal letter, consultation notices and final-settlement documents. Relevant internal emails, lawful screenshots of recruitment advertisements, public company announcements and witness statements may also help.
Employees should not steal confidential databases or access systems after authorisation has been withdrawn. Evidence obtained through unlawful access may create separate civil, employment or criminal problems. A lawyer can request production of relevant documents during proceedings and explain how to preserve digital evidence properly.
Labour inspection and the court
The labour inspector’s conciliation role in individual disputes arises principally from the Labour Code provisions governing labour inspection, including Article 532. Article 63 deals with the remedy and burden of proof; it should not be cited as if it made labour-inspector conciliation an absolute jurisdictional prerequisite in every dismissal case.
Seeking conciliation is nevertheless sensible. It is quick, inexpensive and sometimes produces payment without litigation. If no agreement is reached, the employee may file a claim before the social division of the territorially competent court of first instance. Morocco does not maintain a wholly separate national system of stand-alone labour courts; employment disputes are generally handled by the social sections of ordinary courts.
Territorial jurisdiction commonly follows the workplace or legally relevant establishment, subject to the Code of Civil Procedure. Appeals go to the competent court of appeal, and points of law may ultimately reach the Court of Cassation in Rabat.
Claims arising from an individual employment relationship are generally subject to a two-year limitation period. Online commentary sometimes attributes this period to Article 396, but practitioners should verify the current consolidated Code and the exact cause of action rather than relying on a copied citation. More urgently, a final-settlement receipt may have to be denounced within 60 days. Waiting for the two-year period is therefore a serious mistake.
For a fuller procedural overview, see how to challenge unfair dismissal in Morocco.
Does the employee need a lawyer?
Representation by counsel is not generally compulsory at first instance in an individual labour dispute. In practice, AI cases combine collective-dismissal procedure, technical evidence, data protection, compensation calculations and questions about the true economic reason. Professional assistance is strongly recommended.
Indicative legal fees may range from 3,000 to 15,000 DH depending on the city, evidence, number of hearings and whether an appeal is required. Fee arrangements vary, and the client should request a written engagement letter. Depending on location, a worker or business may consult an employment lawyer in Casablanca, an employment lawyer in Rabat, an employment lawyer in Marrakech or an employment lawyer in Tangier.
Employees with insufficient resources may apply for legal aid through the competent legal-aid office. Eligibility is assessed under the applicable rules and normally requires evidence of financial circumstances.
CNSS income support and professional conversion
The employment-loss allowance is not automatic
The CNSS indemnité pour perte d’emploi, or IPE, provides temporary income after an involuntary job loss. Contrary to a widespread belief, it is not paid automatically and is not based simply on having contributed for 36 months.
The traditional statutory conditions include at least 780 days of CNSS contributions during the 36 months preceding the loss of employment, including 260 days during the previous 12 months, involuntary loss of work, active job seeking and registration with ANAPEC within 60 days. Applicants should verify current conditions directly with the CNSS, since reforms and implementing rules may change.
The allowance is generally 70% of the reference salary, subject to the applicable minimum-wage ceiling, for up to six months. This ceiling means that an employee earning 12,000 DH will not necessarily receive 8,400 DH per month.
The scheme was introduced through amendments to the social-security legislation, notably Law No. 03-14. It should not be attributed without qualification to Law No. 57-18, as some summaries do.
ANAPEC, OFPPT, CSF and GIAC
The dismissed worker should register promptly with ANAPEC, ideally immediately and in all cases within the IPE deadline. The file may require the national identity card, CNSS number, work certificate, proof of termination and banking details.
ANAPEC can assist with job-search registration and matching, while OFPPT provides training pathways. CSF and GIAC mechanisms are generally mobilised through employers and professional structures rather than functioning as an automatic personal cheque for every dismissed worker. Accessibility varies by programme, sector and annual funding.
AI, personal data and algorithmic selection
Morocco’s Law No. 09-08 protects individuals with regard to personal-data processing and is supervised by the Commission Nationale de contrôle de la protection des Données à caractère Personnel, or CNDP. An employer that feeds attendance records, productivity scores, recorded calls or behavioural data into an AI selection tool must have a lawful and transparent basis for processing.
The Labour Code does not yet contain a detailed right to an explanation equivalent to the most developed foreign AI legislation. Even so, an employer must be able to defend its selection criteria under Article 68 and comply with Law No. 09-08. “The algorithm chose you” is not a legal reason.
A sound internal AI charter should identify approved systems, authorised data, human oversight, audit procedures, security rules, prohibited uses and a channel through which employees can question a decision. High-impact employment decisions should never be left to a black box without accountable human review.
The gaps in Moroccan social law
Morocco Digital 2030 is not an employment protection code
The Morocco Digital 2030 strategy seeks to accelerate digital public services, innovation and skills. It does not, by itself, establish dismissal rights, mandatory redeployment or an enforceable individual right to AI reskilling.
Debates surrounding reform of the Labour Code and social dialogue have so far not produced a comprehensive chapter devoted to artificial intelligence at work. Existing rules therefore apply by analogy. This is workable for today’s disputes, but not sufficient for the next five years.
What reform should include
A future reform should define technological dismissal more precisely and impose an auditable employment-impact assessment before large automation projects. It should establish a stronger redeployment duty, an enforceable training entitlement and special transparency rules where algorithms influence selection.
Collective agreements can act sooner. Employers and unions—including the UMT, CDT and other representative organisations—could negotiate a technological safeguard clause. Such a clause might provide advance information, a skills audit, a funded training period, priority for AI-supervision roles and independent review of algorithmic selection criteria.
The CGEM and sectoral federations also have an interest in legal clarity. A predictable process protects investment as much as employees. Businesses need to know the cost and timetable of transformation before signing technology contracts.
Practical checklist for affected employees and employers
If you are an employee
- Request the reason in writing. Ask what technology was deployed, when the decision was made and why your position was selected.
- Preserve your documents. Keep payslips, CNSS records, evaluations, emails, job advertisements and all termination papers.
- Do not sign blindly. Read the final-settlement receipt, add reservations if necessary and obtain advice before the 60-day denunciation period expires.
- Contact labour inspection promptly. Conciliation may preserve evidence and facilitate settlement even where proceedings are later required.
- Register with ANAPEC. Do not miss the 60-day IPE deadline while negotiating with the employer.
If you are an employer
Carry out a legal audit before approving headcount reductions. Separate genuine job elimination from ordinary performance management. Prepare evidence of the technological change, map internal vacancies and cost reasonable training.
Consult the works council, staff delegates and trade union representatives at the proper stage. Apply Article 68 criteria transparently and submit the Article 67 authorisation file where required. Finally, audit any algorithm used in selection for accuracy, explainability and compliance with Law No. 09-08.
A business planning a significant reduction should consult an economic dismissal lawyer in Morocco before announcing the project. Once employees have been told that their jobs are gone, procedural mistakes are much harder to repair.
Conclusion: AI changes the workplace, not the rule of law
A Moroccan employer can legally eliminate jobs because of artificial intelligence, but only where the technological reason is real, serious and verifiable. For covered collective dismissals, Articles 66 to 71 impose consultation, administrative authorisation, objective selection, financial compensation and re-employment safeguards.
The Labour Code is not yet tailored to algorithmic management. It offers no detailed right to AI retraining and no complete framework for automated employment decisions. Still, employees are far from unprotected. The provisions on valid reason, proof, staff representation, personal data and unfair-dismissal damages already provide substantial remedies.
Morocco now has a narrow legislative opportunity. Failing to add a genuine digital-transition chapter to the future Labour Code would be a missed reform whose social cost may become visible very quickly. Until then, both sides should act before the conflict begins: obtain a documented legal assessment from an employment and social-law lawyer in Morocco, rather than trying to repair an unlawful dismissal after the algorithm has been switched on.

