Morocco AI Regulation Overview
Morocco
RAI-MA-NA-SUMMARY-2026Morocco has binding national cybersecurity rules relevant to AI deployments and is considering broader AI-specific legislation. Pending bills would create risk-based AI obligations, oversight structures, registration and conformity measures for certain high-risk systems.
Morocco AI regulation: what is in force
1 of the 3 instruments we track in Morocco is in force. Laws, regulations and decrees first, then standards, guidance and policy; newest first within each. Bills, drafts and the other 2 instruments we track are listed below the overview.
- Morocco Cybersecurity Law 2020ActIn Forceeffective 24 Jul 2020
Full article
Overview
Morocco’s national approach to artificial intelligence is developing through proposed horizontal AI and digital-governance measures, alongside an established cybersecurity framework. The in-force Law No. 05-20 on Cybersecurity provides binding safeguards for information systems, especially those operated by State administrations, local authorities, public establishments, and Entities of Vital Importance (OIVs). Its requirements concerning resilience, audits, incident handling, security standards, and sensitive-system hosting are directly relevant to the secure deployment of AI-enabled systems.
The proposed Digital X.0 Framework Law and the proposed bill establishing a National Agency for AI Governance would move the framework toward dedicated AI regulation. Both proposals contemplate governance across public and private actors, with emphasis on data sovereignty, risk management, transparency, documentation, human review, security, and coordination among existing authorities. Neither proposal is in force: the Digital X.0 Framework Law was presented and placed under government review on 1 March 2025, while the agency bill was submitted on 1 April 2024.
Regulatory Approach
The proposed approach is horizontal and risk-based rather than limited to a single economic sector. The Digital X.0 Framework Law would provide common legal and technical rules for digital public services, AI deployment, data governance, interoperability, and cybersecurity. It would apply across central and local administrations, public institutions, and private vendors that provide services to the public sector, while preserving sector-specific constraints.
The proposed agency bill would classify AI systems by risk and gives particular attention to high-risk systems used in sensitive domains or materially affecting Moroccan residents or critical infrastructure. It contemplates pre-deployment assessments, post-market monitoring, incident reporting, algorithmic documentation, impact assessments, explainability measures, and tailored transitional provisions for research and small-scale developers. By contrast, Law No. 05-20 is a binding cybersecurity law focused on the protection and resilience of information systems and vital entities.
Key AI Laws and Policies
- Law No. 05-20 on Cybersecurity — In force from 24 July 2020. It establishes Morocco’s cybersecurity framework for public-sector information systems and OIVs, including national security standards, audits, incident reporting, oversight, and data-residency requirements for sensitive systems.
- Application Decree No. 2-21-406 — Published on 1 July 2021. It operationalizes implementation of Law No. 05-20, including the implementation framework for OIV cybersecurity obligations.
- Digital X.0 Framework Law — A draft 2025 framework intended to govern digital public services, AI deployment, data governance, interoperability, cybersecurity, transparency, risk assessment, and human review in AI-assisted public services.
- Bill for the Establishment of the National Agency for AI Governance — A proposed 2024 bill that would establish an independent authority for national AI policy, regulatory coordination, risk-based oversight, inspections, conformity assessment, and enforcement.
Governance & Enforcement Bodies
Law No. 05-20 centralizes cybersecurity governance under the National Defense Administration through the General Directorate of Information Systems Security (DGSSI). The DGSSI coordinates implementation, defines technical standards, oversees critical infrastructure security, may conduct inspections, approves or qualifies certain cybersecurity service providers, and issues binding directives to OIVs. It also hosts maCERT, which supports incident detection, reporting, coordination, alerts, and technical assistance.
The law also establishes the Strategic Cybersecurity Committee (CSSI), which defines national cybersecurity strategy, supports inter-ministerial coordination, and monitors national cyber resilience. The proposed Digital X.0 Framework Law would add a central coordinating office within the authority responsible for digital transition and Administration X.0, together with technical standard-setting bodies. It contemplates coordination with the CNDP on personal-data matters, the DGSSI on cyber resilience and system integrity, and national security services on security and law-enforcement access safeguards. The proposed AI agency bill would create a separate independent administrative authority with policy, risk assessment, inspection, research, and capacity-building functions.
Penalties & Enforcement
Law No. 05-20 provides for continuing compliance oversight through DGSSI inspections, including scheduled and unannounced inspections of OIV facilities and information systems. The DGSSI may review technical documentation, interview personnel, and conduct technical tests. Where deficiencies are identified, it may issue a formal notice specifying required corrective actions and an implementation timeline. OIVs are also subject to recurring security audits of sensitive systems at least once every two years by DGSSI-qualified auditors.
No monetary penalty ranges, criminal penalties, or appeal procedures are specified in the tracked instruments. The proposed National Agency for AI Governance would have powers to require corrective action, suspend or withdraw systems, and impose administrative fines calibrated by severity and recurrence, but the bill does not specify fine amounts. These proposed enforcement powers are not currently in force.
Data Protection Framework
The pending AI and digital-framework initiatives treat personal-data governance as an integral element of AI oversight. The Digital X.0 Framework Law would use terminology concerning data controllers and processors, coordinate with the CNDP on personal-data matters, and require safeguards for AI-assisted services. The proposed agency bill includes personal-data processing within its contemplated definitions and would require privacy-by-design data governance standards, transparency concerning automated decisions, and data-protection safeguards.
Law No. 05-20 addresses data sovereignty from a cybersecurity and critical-infrastructure perspective. OIVs must host sensitive data and systems within national territory, and cloud services used by public entities must meet security requirements and be hosted in Moroccan data centers. No separately tracked instrument sets out a general GDPR-equivalent privacy regime, personal-data penalty structure, or international-transfer framework.
Sector-Specific Rules
No AI-specific sectoral rules for healthcare, financial services, autonomous vehicles, employment, or other individual sectors are identified in the tracked national instruments. Law No. 05-20 applies according to the importance and sensitivity of information systems rather than as an AI-sector statute, with particular relevance to entities whose activities support vital societal functions, health, safety, or economic and social well-being.
The proposed AI agency bill identifies health, justice, and social services as examples of sensitive domains in which high-risk AI systems may require heightened treatment. It also covers systems materially affecting Moroccan residents or critical infrastructure. The Digital X.0 Framework Law is intended to complement sectoral laws by setting enabling rules for interoperability and data governance, while preserving sector-specific regulatory constraints; detailed sector-specific AI obligations would depend on subsequent measures.
International Alignment
The proposed Digital X.0 Framework Law states an intention to align definitions and governance concepts with existing national personal-data legislation and international good practices. The proposed bill establishing a National Agency for AI Governance similarly seeks alignment with international norms and contemplates technology-neutral definitions intended to support interoperability. These references indicate an outward-looking policy direction but do not establish adoption of any identified foreign or international AI instrument.
No tracked national instrument adopts, incorporates, or expressly aligns Morocco’s framework with the EU AI Act, OECD AI Principles, or another named international AI standard. The proposed measures instead describe general alignment with international instruments and norms, while retaining a national framework centered on sovereignty, public-service modernization, privacy, cybersecurity, and risk-based oversight.
Future Developments
The principal pending development is the Digital X.0 Framework Law, presented on 1 March 2025 and under government review. The draft would establish legal principles and mandatory obligations, with later decrees, technical rules, certification schemes, interoperability layers, common technical stacks, and compliance procedures expected to supply operational detail. It also anticipates stakeholder consultation, shared-platform pilots, technical standards, and conformity-assessment mechanisms.
A second major development is the proposed bill to establish the National Agency for AI Governance, submitted on 1 April 2024. If adopted, it would introduce centralized AI policy and oversight, registration or notification for specified systems, pre-deployment conformity assessment for high-risk AI, audits, inspections, post-market monitoring, incident reporting, regulatory sandboxes, and national AI infrastructure initiatives. Its final institutional design, enforcement parameters, and detailed compliance rules remain pending.
Also tracked in Morocco: bills, drafts and other AI instruments
2 instruments tracked — 1 Draft, 1 Proposed. Built directly from our records, so — unlike the written overview — it cannot go stale.
| Instrument | Type | Status | Year | Effective |
|---|---|---|---|---|
| Morocco - Digital Services Framework (2025) | Bill | Draft | 2025 | — |
| Morocco - National AI Governance Bill (2024) | Bill | Proposed | 2024 | — |
Real enforcement actions
1 entry recordedPublic enforcement actions recorded for Morocco. They show how its AI rules are applied in practice.
- Service ban / suspensionAug 30, 2019
CNDP (Morocco) vs All public and private bodies (sector-wide)
By Deliberation D-194-2019 the CNDP imposed a moratorium on facial-recognition technology from 2 September 2019, suspending any authorisation for its use pending a governance framework (later extended).
Source ↗
© Regulations.AI using GPT 5.6 Terra · updated on 26 Nov 2026