
New Cybercrime Law: Social Media Risks in Morocco 2026
New Cybercrime Law: Social Media Risks in Morocco 2026
Hook Introduction: The Digital Trap in the Modern Kingdom
Imagine this: You are a thriving content creator in Casablanca, or perhaps a small business owner in Marrakech, using social media to engage with your audience. One evening, you share a video or a post that contains sensitive information about a competitor, or perhaps you re-share a trending "news" story that turns out to be entirely fabricated. Within forty-eight hours, you receive a formal summons from the judicial police. You discover that your digital footprint has triggered a series of legal mechanisms under the Moroccan Penal Code and the specialized Law No. 09-08.
As we navigate through 2026, the digital landscape in Morocco has become a sophisticated legal environment. Gone are the days when social media was considered a "lawless frontier." Today, the Moroccan judiciary, supported by advanced investigative units and international treaties like the Budapest Convention, actively monitors and prosecutes cyber-related offences. Whether it is a comment on Facebook, a "live" on TikTok, or an encrypted message on WhatsApp, every digital interaction carries potential legal weight.
In this comprehensive guide, you will learn about the intricate web of laws governing your online presence. We will explore how Law No. 07-03 (which modified the Penal Code regarding cybercrime) interacts with the Press and Publishing Code and the Data Protection Law. By the end of this article, you will understand the specific penalties for online defamation, the risks of spreading "fake news," and the procedural powers of the Moroccan authorities to intercept digital communications. Protecting your digital freedom in 2026 requires more than just a strong password; it requires a robust understanding of Moroccan jurisprudence.
Legal Foundation: The Pillars of Moroccan Cyber-Regulation
The legal framework governing social media and cybercrime in Morocco is not found in a single document but is a constellation of several codes and specialized laws. To understand your risks in 2026, you must look at the following primary sources:
1. The Moroccan Penal Code (Modified by Law No. 07-03)
The cornerstone of cybercrime prosecution is Law No. 07-03, which integrated a specific chapter into the Penal Code dedicated to the "automated processing of data."
- Article 607-3: This article is critical for anyone managing digital platforms. It criminalizes the unauthorized access to all or part of an automated data processing system.
- Article 607-6: This provision targets the "interference" with the functioning of a system, which can include DDoS attacks or even the intentional disruption of social media services.
2. Law No. 09-08: Protection of Personal Data
Social media is, at its core, the processing of personal data. Law No. 09-08 relates to the protection of individuals with regard to the processing of personal data.
- Article 1: Defines personal data and establishes the scope of protection.
- Article 57: Explicitly prohibits the processing of sensitive data (such as religious beliefs, political opinions, or health status) without the express consent of the data subject or specific legal authorization. In 2026, the National Commission for the Protection of Personal Data (CNDP) has increased its oversight of influencers who "dox" or reveal the private lives of others.
3. The Code of Criminal Procedure (Code de Procédure Pénale)
The procedural aspect of how you are caught and prosecuted is governed by the Code of Criminal Procedure.
- Article 108: This is perhaps the most significant article for social media users. It grants the Public Prosecutor and the Investigating Judge the power to order the interception of telecommunications, including electronic communications, when the security of the state is at risk or in cases of organized crime. Reference 3 of the Moroccan law highlights that these techniques include "capturing calls and communications completed via remote communication means and all forms of electronic communications."
4. Law No. 88-13: The Press and Publishing Code
While the Penal Code handles "crimes," the Press and Publishing Code governs professional media. However, in 2026, the line between a "journalist" and a "social media influencer" is often blurred.
- Article 72: This article deals with the publication of "false news" (fake news) that disturbs public order. If your social media post causes a public panic, you are liable under this framework.
5. Law No. 77-03: Audiovisual Communication
For those who run YouTube channels or podcasts, Law No. 77-03 (Reference 6) provides specific penalties. Article 71 of this law imposes imprisonment from three months to one year and heavy fines for anyone broadcasting audiovisual services without the required authorization.
Practical Guide: Navigating a Social Media Legal Crisis
If you find yourself accused of a cybercrime or a social media violation in Morocco in 2026, the process moves swiftly. Understanding the timeline and the required documentation is essential for your defense.
Step 1: The Judicial Police Investigation
Most cybercrime cases begin with a report to the Brigade Nationale de la Police Judiciaire (BNPJ) or the regional cybercrime units. Under the Code of Criminal Procedure, officers have the right to seize digital devices (smartphones, laptops) as evidence.
- Required Action: Do not delete content once an investigation has started. This can be interpreted as "destruction of evidence," a separate offence under the Penal Code.
Step 2: Digital Evidence and Forensics
The Moroccan courts rely heavily on technical expertise. According to Reference 1, the state has strengthened its "expertise field," relying on digital fingerprinting and parallel financial research to track the proceeds of cyber-enabled crimes (such as online fraud).
- Timeline: A digital forensic audit can take anywhere from 15 days to several months, depending on the complexity of the encryption used.
Step 3: The Role of the Public Prosecutor
In Morocco, the Public Prosecutor (Procureur du Roi) decides whether to pursue a case as a "misdemeanor" (Délit) or a "felony" (Crime).
- Article 111 of the Penal Code (Reference 4) clarifies that a crime is categorized based on its penalty. If the act is punishable by more than two years of imprisonment, it is a "Correctional Misdemeanor" (Gencha Taâdibya).
Step 4: Alternative Penalties in 2026
A significant development in 2026 is the implementation of Law No. 43-22 regarding alternative penalties (Reference 8).
- Electronic Monitoring: For certain non-violent social media offences, the court may order "Electronic Monitoring" (ankle bracelets) instead of prison time.
- Community Service: Under Article 2 of the new law, "Work for the General Benefit" is now a valid alternative for minor digital infractions.
- Note: Alternative penalties are not available for crimes related to state security or terrorism (Article 3, Reference 8).
Costs and Legal Fees
- Court Fees: Generally low for criminal cases, but civil damages for defamation can reach hundreds of thousands of Dirhams.
- Lawyer Fees: For a cybercrime defense, fees in 2026 typically range from 10,000 MAD to 50,000 MAD depending on the complexity and the level of the court (First Instance vs. Appeal).
Key Provisions Explained: What You Can and Cannot Post
Understanding the "Legal Foundation" is one thing; applying it to your daily scrolling is another. Here is a breakdown of the most high-risk areas on Moroccan social media in 2026.
Online Defamation and Libel
In Morocco, defamation is defined as any allegation or imputation of a fact that harms the honor or consideration of the person or the body to whom the fact is imputed.
- The Risk: Using a screenshot of a private conversation to "expose" someone on a Facebook group is a violation of both the Penal Code and Law 09-08.
- The Penalty: Fines can range from 5,000 to 50,000 MAD, and in cases involving public officials, imprisonment is a high probability.
The "Fake News" Trap
Under Article 72 of the Press Code, the dissemination of false news in bad faith is a serious offence. In 2026, the Moroccan authorities are particularly sensitive to "deepfakes" or AI-generated content that mimics government officials or royal family members.
- Example: Posting an AI-generated video of a minister announcing a fake tax will lead to immediate prosecution under the "disturbance of public order" clause.
Privacy in the Workplace
Many employees in Morocco are unaware that their social media activity can lead to legal termination. Morocco Labor Code (Law 65.99): Employee Rights & Employer Duties Explained provides the basis for professional conduct. However, Law 09-08 protects the employee's data. If an employer accesses an employee's private social media messages without a court order, they are in violation of Article 607-3 of the Penal Code regarding unauthorized access to data systems.
Cyber-Harassment and "Revenge Porn"
Morocco has taken a very strict stance on the non-consensual sharing of intimate images. This is governed by the Penal Code and is often prosecuted as a felony if the victim is a minor. Even "liking" or "sharing" such content can, in some judicial interpretations, constitute "participation" in the crime.
Financial Crimes and Social Media
With the rise of "social commerce," many are using Instagram and TikTok to sell products. If you are operating without a Digital Tax Registration: E-Commerce in Morocco 2026, you are not only violating tax laws but could be charged with "fraud" if the products are not as described. Reference 1 mentions "parallel financial research" as a tool now used by the Moroccan state to dry up the revenues of digital criminal networks.
Common Mistakes & How to Avoid Them
Even well-intentioned users often fall into legal traps. Here are the most common pitfalls observed in Moroccan courts in 2026:
1. The "Screenshot" Fallacy
Many believe that if a conversation was "private," they have the right to share it if they were a participant. False. Under Law 09-08, sharing a person's private information (including their phone number or photo) without their consent is a punishable act.
- How to avoid: Always blur faces and personal identifiers if you must share a screenshot for a legitimate reason, such as reporting a crime to the authorities.
2. Sharing Without Verifying
In the heat of a viral moment, users often click "share" on sensationalist news. In 2026, "I didn't know it was fake" is rarely an acceptable defense in Moroccan courts. The judiciary expects a "duty of care" from users with large followings.
- How to avoid: Check official sources like the Maghreb Arabe Presse (MAP) before sharing news regarding national security, public health, or the economy.
3. Ignoring the CNDP
Businesses often collect user data through Instagram giveaways or Facebook lead forms without filing a declaration with the CNDP. This is a direct violation of Law 09-08.
- How to avoid: Ensure your business has obtained CNDP Authorization: Step-by-Step 2026 before launching any digital marketing campaign that collects personal data.
4. Insulting Public Institutions
There is a fine line between "criticism" and "insult" (Sabb/Qadf) in Moroccan law. Insulting the flag, the monarchy, or the territorial integrity of the Kingdom on social media is prosecuted under the highest level of the Penal Code.
- How to avoid: Focus your critiques on policies and actions rather than symbols of the state or the private lives of officials.
Conclusion with Key Takeaways
The digital landscape of Morocco in 2026 is a reflection of a nation that is rapidly modernizing its legal infrastructure. While social media offers unprecedented opportunities for connection and commerce, it also functions as a digital record that can be used in a court of law. The integration of the Budapest Convention and the strengthening of the CNDP mean that privacy is protected, but "digital impunity" is a thing of the past.
By understanding the interplay between the Penal Code, Law 09-08, and the Code of Criminal Procedure, you can navigate the web safely. Remember that in the eyes of the Moroccan justice system, a "post" is a "publication," and a "click" is an "action."
Summary of Key Takeaways:
- Law 07-03 is the primary tool for prosecuting unauthorized access and system interference.
- Law 09-08 protects your personal data but also holds you liable if you share the data of others without consent.
- The Code of Criminal Procedure (Article 108) allows for the legal interception of digital communications under specific judicial oversight.
- Fake News is not just a social issue; under Article 72 of the Press Code, it is a criminal offence if it disturbs public order.
- Alternative Penalties (like electronic bracelets) are now available in 2026 for minor social media offences, providing a path for rehabilitation over incarceration.
Related Search Terms
9anoun ai, 9anon ai, kanon ai, kanoun ai, qanon ai, qanoun ai
Frequently Asked Questions
Yes, if the comment contains defamation, incitement to violence, or false news that disturbs public order, you can be prosecuted under the Penal Code or the Press and Publishing Code.
Penalties vary but typically include fines between 5,000 and 50,000 MAD. If the defamation targets a public official, it may also result in a prison sentence ranging from one month to one year.
Under Article 108 of the Code of Criminal Procedure, the judicial police can intercept and record electronic communications, but only with written authorization from the Public Prosecutor or an Investigating Judge in specific serious cases.
You should immediately file a complaint with the CNDP for a violation of Law 09-08 and report the matter to the nearest police station or the 'e-reclamation' portal of the DGSN.
While the Press Code primarily targets professional journalists, certain provisions regarding 'fake news' and 'public morality' are applied by Moroccan courts to any individual with a significant public reach on digital platforms.
Yes, screenshots are generally admissible as digital evidence, though the court may appoint a technical expert to verify their authenticity and ensure they have not been tampered with or fabricated.
Get weekly Moroccan legal updates 📬
Exclusive insights on Moroccan law, citizen rights, and new court decisions — delivered straight to your inbox.
No spam. Unsubscribe anytime.
Have More Legal Questions?
Consult 9anon AI now and get accurate, instant answers about your legal situation in seconds.
Related Articles
Cybercrime Penalties: Morocco Social Media Guide 2026
Do you know the cybercrime penalties in Morocco? Learn about the 2026 penal code amendments and fines for online offenses. Avoid legal troubles now!
Bar Association: Protest Role in Morocco 2026
What is the role of the Bar Association in opposing draft laws in Morocco? See how your bar influences legislation in 2026. Participate in defending your rights!
Voluntary Mediation: Law Explained 2026 Morocco
Discover the new voluntary mediation law in Morocco for 2026. Learn how to use mediation to resolve business and family disputes quickly and easily.
