CNDP and websites in Morocco: what are the obligations for personal data in 2026?
In Morocco, any website that collects personal data (contact form, newsletter, customer account, cookies) must declare its processing operations to the CNDP free of charge under Law No. 09-08, or obtain prior authorization for sensitive data and transfers to countries not on the CNDP list. It must also inform users, obtain their consent, secure the data and respect their rights. Breaches are punishable by fines of 10,000 to 300,000 MAD, doubled for companies, and by prison sentences.
The essentials in 7 points
In shortCNDP: Moroccan data protection authority, created by Law 09-08 (2009) and its implementing Decree No. 2-09-165
Formalities: prior declaration of each processing operation (free of charge), prior authorization for sensitive data, interconnections and transfers of data to countries not on the CNDP list
Personal data: any information making it possible to identify a person (name, email, telephone, IP address, cookies, customer number)
Website compliance: privacy policy, information notices on forms, consent for the newsletter and non-essential cookies, security
Rights of individuals: information, access, rectification, objection (in particular to direct marketing)
Penalties: fines of 10,000 to 300,000 MAD, doubled for legal entities, and prison sentences
GDPR: also applicable if your website targets residents of the European Union
the information provided in this article is for information purposes only and does not constitute personalized legal advice. We recommend that you consult a qualified legal expert before making any decision. Charikaty provides experts to support you: contact us for free advice.
Law No. 09-08 on the protection of individuals with regard to the processing of personal data entrusts the monitoring of these obligations to the CNDP (Commission Nationale de contrôle de la protection des Données à caractère Personnel, the National Commission for the Control of Personal Data Protection). Here are your legal obligations and the method for bringing yourself into compliance; data protection comes in addition to the other legal obligations after setting up a company.
What do the CNDP and Law 09-08 provide for?
What is the CNDP?
The CNDP (Commission Nationale de contrôle de la protection des Données à caractère Personnel) is the independent Moroccan authority responsible for:
✅ Receiving declarations and issuing processing authorizations ✅ Monitoring the compliance of data controllers, on site and on the basis of documents ✅ Investigating complaints from data subjects ✅ Recording offences and referring matters to the public prosecutor ✅ Advising businesses and publishing recommendations and simplified procedures
Legal basis: Law No. 09-08 promulgated by Dahir No. 1-09-15 of 18 February 2009, and implementing Decree No. 2-09-165 of 21 May 2009. A reform intended to bring this framework closer to the European GDPR is being prepared, but Law 09-08 remains the applicable text in 2026.
Official website: www.cndp.ma (notification forms, decisions and recommendations)
Fundamental principles (Law 09-08)
| Principle | Details |
|---|---|
| Lawfulness and fairness | Data are collected and processed fairly, lawfully and transparently |
| Purpose | Data collected for specified, explicit and legitimate purposes, without being diverted from them |
| Proportionality | Only adequate, relevant and non-excessive data are collected |
| Accuracy | Data must be accurate and, where necessary, kept up to date |
| Limited duration | Retention for a period not exceeding that necessary for the purpose |
| Consent | Processing based on the person's consent, subject to legal exceptions (contract, legal obligation, legitimate interest) |
| Security and confidentiality | Protection against unauthorized access, loss and alteration |
| Prior formalities | Declaration or authorization with the CNDP before any processing |
What information counts as personal data?
What is "personal data"?
Any information relating to an identified or identifiable natural person:
✅ Identity: surname, first name, photo, signature, date of birth ✅ Contact details: email, telephone, postal address ✅ Identifiers: CIN (national identity card) number, customer number, cookie identifier ✅ Technical data: IP address, geolocation, device identifier ✅ Sensitive data: racial or ethnic origin, political opinions, religious beliefs, trade union membership, health, genetic data ✅ Banking data: RIB (bank account details), card number (even partial) ✅ Browsing data: history, online behaviour
Example: a list of customer emails constitutes a personal data file subject to Law 09-08.
What is not personal data
❌ Anonymized data: impossible to identify the person, even indirectly (e.g. "25% of visitors…") ❌ Data relating to a legal entity: company name, ICE, registered office address ❌ Technical data that cannot be linked to a person (aggregated browser type, overall statistics)
What are your website's legal obligations?
1.Declaration or authorization with the CNDP
If you collect personal data, each processing operation must be the subject of a prior declaration to the CNDP. A prior authorization is required for the processing of sensitive data, data relating to offences, interconnections of files and changes of purpose. Transfers of data abroad (hosting, CRM or emailing tools located outside Morocco) must be submitted to the CNDP: they are permitted to the countries on its list of States ensuring adequate protection (deliberation No. 465-2013, amended in 2015) and require prior authorization to other countries, subject to the exceptions provided for by law, such as the express consent of the person.
Cases concerned:
- ✅ Newsletter (customer emails)
- ✅ Contact forms (name, email, telephone)
- ✅ Customer area (account with profile)
- ✅ Audience measurement and advertising cookies
- ✅ Job application forms
- ✅ Blog comments, online chat
Cases not concerned:
- ❌ Purely informational website, with no form or data collection
- ❌ Website using only cookies strictly necessary for its operation
Declaration procedure:
- Preparing the file: description of the processing (purpose, data collected, categories of persons, recipients, retention period), security measures, place where the data are hosted
- Filing with the CNDP: official notification form, filed online via the CNDP-FORMS platform (www.cndp.ma) or at the Commission's headquarters; fees: free of charge. Simplified procedures exist for common processing operations (personnel management, newsletters, access control) and for cookies
- Review: the CNDP issues a declaration receipt (récépissé); for an authorization, it rules within the time limit provided for by law, in principle two months
- Receipt or authorization: its number must appear on your forms and in your privacy policy
CNDP notification template:
NOTIFICATION OF PROCESSING (PRIOR DECLARATION)
Data controller: [Company name, legal form, RC, ICE]
Address: [Registered office]
Representative: [Name of the manager or of the designated officer]
Contact: [Email / telephone]
PROCESSING:
Purpose: management of the customer newsletter
Data collected: email, surname, first name
Categories of persons: customers and prospects
Retention period: 3 years after the last contact
Recipients: internal marketing team, emailing service provider
Data hosting: [Morocco / foreign country: transfer declared to the CNDP, or authorized if the country is not on its list]
SECURITY MEASURES:
- Website in HTTPS, encrypted database
- Access limited to authorized persons, strong passwords
- Regular backups
- Privacy policy published
Attachment: website privacy policy
💡 Tip: declare even a simple processing operation. The formality is free of charge and the declaration is the first document requested during an inspection.
2.Privacy policy (politique de confidentialité)
Mandatory on any website that collects data, it gives effect to the right to information provided for by Law 09-08.
Minimum content:
| Section | Details |
|---|---|
| Identity | Name and address of the data controller |
| Data collected | Precise list: email, telephone, cookies, etc. |
| Purposes | Why the data are collected (newsletter, customer service, orders) |
| Mandatory or optional nature | Of the answers, and consequences of failing to answer |
| Retention period | By category of data |
| Rights of individuals | Access, rectification, objection and how to exercise them |
| Recipients | Who has access to the data (internal teams, service providers, partners) |
| Transfers abroad | Hosting country and CNDP authorization where applicable |
| Security | Protection measures in place |
| Cookies | Cookies used, purposes and how to refuse them |
| CNDP reference | Number of the declaration receipt or of the authorization |
Simplified privacy policy template:
PRIVACY POLICY
[Website name]
1. DATA CONTROLLER
[Company name], [registered office], RC No. [..], ICE No. [..]
Contact: [email]
2. DATA COLLECTED
- Email, surname and first name (contact and newsletter forms)
- IP address and browsing data (server logs, cookies)
- Order and delivery data (online shop)
3. PURPOSES AND LEGAL BASIS
- Responding to your requests (performance of the pre-contractual relationship)
- Sending the newsletter (consent)
- Audience measurement and website improvement (consent for non-essential cookies)
4. RETENTION PERIODS
- Contacts: 1 year after the request
- Newsletter subscribers: 3 years after the last contact
- Order data: term of the contract, then statutory accounting retention periods (10 years)
5. YOUR RIGHTS
In accordance with Law 09-08, you have a right of access, rectification
and objection, in particular to direct marketing.
To exercise them: [email]. You may also refer the matter to the CNDP (www.cndp.ma).
6. SECURITY
Website in HTTPS, restricted access, regular backups.
7. COOKIES
Session cookies (necessary); audience measurement and advertising cookies
(subject to your consent, which can be changed at any time).
8. TRANSFERS AND FORMALITIES
This processing has been declared to the CNDP under No. [..]. Data hosted
outside Morocco are covered, where applicable, by transfer authorization No. [..].
Last updated: [Date]
Where to place it:
- ✅ Link in the footer of every page of the website
- ✅ Dedicated page (/privacy-policy)
- ✅ Link on each form, before submission
- ✅ Readable and accessible text (illegible wording is equivalent to a failure to inform)
3.Consent and information on forms
For any data collection, the user must be informed and, where the processing is based on their consent, must express it by a positive act. Direct marketing by email or SMS is prohibited without prior consent (Law 09-08).
Types of consent:
| Type | Validity | Example |
|---|---|---|
| Opt-in (checkbox not pre-ticked) | ✅ Mandatory for the newsletter, direct marketing and non-essential cookies | "I agree to receive the newsletter" |
| Opt-out (unsubscribing afterwards) | ❌ Insufficient for direct marketing and sensitive data | Pre-ticked box, unsubscribing after the fact |
| Implied consent | ❌ No legal value | "By browsing this website, you accept…" |
Implementation:
✅ Newsletter form
☐ I agree to receive the newsletter from [Name] (consent)
The information collected is intended for [Name] for sending the newsletter.
Processing declared to the CNDP under No. [..]. Rights of access, rectification
and objection: [email]. [Read the privacy policy]
[Subscribe]
✅ Cookie banner
This website uses audience measurement and advertising cookies.
[Accept all] [Refuse non-essential cookies] [Customize]
❌ To avoid:
By visiting this website, you accept our cookies and our policy… (no real consent)
Pre-ticked box "Receive our partners' offers" (consent not freely given)
Proof of consent:
- Keep logs: who consented, when, by what means
- Subscription confirmation email (double opt-in recommended)
- Logging of cookie choices, including refusals
4.Legal notice and identification of the website
The operator of a commercial website must make itself identifiable, in accordance with Law 31-08 (consumer information in distance contracts) and the Commercial Code (mention of the Commercial Register number on commercial documents). The template below also includes the Common Company Identifier (ICE) and the tax identification number:
LEGAL NOTICE
Website publisher: [Company name], [legal form], capital [..] MAD
Registered office: [Address]
RC: [Number and city] | ICE: [Number] | IF: [Number]
Publication director: [Name]
Contact: [Email / telephone]
Host: [Name and address of the host]
Intellectual property: the content (texts, images, logos) is protected;
any reproduction without authorization is prohibited.
Personal data: see the privacy policy (CNDP declaration No. [..]).
How should data be secured and retained?
Security measures to put in place
Law 09-08 requires the data controller to take the appropriate technical and organizational measures to protect the data.
Technical:
✅ HTTPS encryption: valid SSL certificate across the whole website, forms included ✅ Authentication: strong passwords, two-factor authentication for administrative access ✅ Encryption and segregation: sensitive data encrypted, separate administration interface ✅ Backups: regular copies, stored securely ✅ Updates: CMS, plugins and servers kept up to date
Organizational:
✅ Internal policy: written procedures, staff awareness, access limited to authorized persons ✅ Contracts with service providers: host, web agency, emailing solution, payment gateway, with confidentiality and security clauses; CNDP authorization for service providers located in a country not on the CNDP list ✅ Incident management: procedure in the event of a data breach; Law 09-08 does not impose a formal notification, but informing the CNDP and the data subjects is strongly recommended
Data retention period
Law 09-08 does not impose specific figures for retention periods: the period is set by the data controller in its declaration and must be proportionate to the purpose. Commonly accepted reference periods:
| Type of data | Indicative period |
|---|---|
| Newsletter subscribers | Until unsubscription or 3 years after the last contact |
| Contact forms | 1 year after the request |
| Customer data | Duration of the relationship, then statutory periods (accounting documents: 10 years, Article 211 of the CGI) |
| Unsuccessful job applications | 1 to 2 years, with the applicant's agreement |
| Cookies and technical logs | A few months, depending on the purpose |
The retention period for invoices and accounting documents falls under the accounting obligations of companies in Morocco.
Deletion procedure:
- Automatic purge when the period expires: the data are deleted or anonymized
- Deletion at the person's request, unless there is a legal obligation to retain the data (for example invoices for 10 years), with written confirmation to the requester
- Documented and verifiable procedure
Which rights must you respect for your users and customers?
Rights guaranteed by Law 09-08
Every data subject has the following rights:
- Right to information: to know, at the time of collection, the identity of the controller, the purposes, the recipients and their rights
- Right of access: to obtain confirmation that their data are being processed and to receive an intelligible copy of them
- Right of rectification: to have inaccurate, incomplete or unlawfully processed data corrected, completed, updated or erased
- Right to object: to object, on legitimate grounds, to the processing of their data and, without having to give grounds, to their use for direct marketing purposes
- Protection against automated decisions: not to be subject to a decision producing legal effects based solely on automated processing
Law 09-08 does not provide for a right to data portability; it is nevertheless good practice to provide the data in a readable format.
How should user requests be handled?
Recommended procedure:
- Receipt: single point of contact (dedicated email address) indicated in the privacy policy
- Verification of the identity of the requester before any disclosure
- Processing: disclosure of the data, rectification or cessation of processing, without undue delay; a period of one month at most is a prudent benchmark
- Documentation: keeping the request and the response to demonstrate compliance in the event of an inspection
What inspections and penalties does the CNDP apply?
Who can be inspected?
The CNDP can inspect any data controller established in Morocco, whatever its size:
✅ E-commerce (customer and delivery data) ✅ SaaS and applications (user data) ✅ Blogs and media (comments, newsletters) ✅ Online services (bookings, appointment scheduling) ✅ Physical shops with a CRM or a loyalty programme
Offences and penalties
Criminal penalties provided for by Law 09-08 (chapter on penalties, Articles 52 et seq.):
| Offence | Fine | Imprisonment |
|---|---|---|
| Processing without declaration or authorization | 10,000 to 100,000 MAD | No |
| Refusal of the rights of access, rectification or objection | 20,000 to 200,000 MAD per offence | No |
| Unfair or unlawful collection, or collection without consent | 20,000 to 200,000 MAD | 3 months to 1 year |
| Processing of sensitive data without express consent | 50,000 to 300,000 MAD | Yes |
| Excessive retention, lack of security, unlawful transfer abroad | 20,000 to 200,000 MAD | 3 months to 1 year |
| Obstruction of an inspection or refusal to implement the CNDP's decisions | 10,000 to 100,000 MAD depending on the offence | 3 months to 1 year at most |
For legal entities, fines are doubled, without prejudice to the penalties incurred by their managers; they are also doubled in the event of a repeat offence. The court may also order the confiscation of equipment and the closure of the establishment. In practice, the CNDP first sends a formal notice before referring the matter to the public prosecutor. The other penalties for business non-compliance (tax, social, commercial) are presented in a dedicated guide.
💡 Tip: voluntary compliance always costs less than an inspection you have to undergo.
CNDP inspection procedure
If the CNDP contacts you:
- Notification: the CNDP informs the data controller of a documentary or on-site inspection, or summons it to a hearing
- Preparation: gather the declaration receipts, the authorizations, the privacy policy, the consent records and the security documentation
- Inspection: sworn officers examine the processing operations, the systems and the contracts with service providers
- Report and formal notice: any discrepancies found are given a deadline for regularization
- Follow-up: follow-up inspection; in the absence of regularization, referral to the public prosecutor and criminal penalties
What should you remember about your website's CNDP obligations?
- Law 09-08 applies to any website that collects even the smallest item of personal data: form, newsletter, customer account, cookies
- Declare each processing operation to the CNDP (free of charge) and request an authorization for sensitive data and transfers to countries not on the CNDP list, including hosting and cloud tools
- Publish a complete privacy policy and inform users on each form, with the CNDP receipt number
- Obtain opt-in consent for the newsletter, direct marketing and non-essential cookies, and keep proof of it
- Secure the data (HTTPS, restricted access, backups, service provider contracts) and set retention periods
- Respond to requests for access, rectification and objection without undue delay and document your responses
- Breaches expose you to fines of 10,000 to 300,000 MAD, doubled for companies, and to prison sentences
FAQ: Frequently Asked Questions
Do I have to declare to the CNDP if I only have a contact form?
Yes. A contact form collects a name and an email address: this is personal data processing subject to prior declaration, free of charge, to the CNDP.
Can I sell or transfer my email list to a marketing agency?
No, an email list may only be transferred with the specific prior consent of each person for this purpose. A transfer without consent constitutes unlawful collection and processing, punishable by fines of 20,000 to 200,000 MAD and imprisonment.
What happens if my website does not have a privacy policy?
A website without a privacy policy is in breach of the information obligation under Law 09-08 and cannot prove valid consent. Together with the absence of a declaration, this is the first breach identified during a CNDP inspection (fine of 10,000 to 100,000 MAD for failure to declare).
Do Google Analytics cookies require consent?
Yes. Audience measurement and advertising cookies such as Google Analytics are not strictly necessary: they require opt-in consent and must be covered by your CNDP declaration. Since the data are hosted abroad, a transfer must also be declared or authorized.
My website is hosted in France or the United States: is that a problem?
Hosting outside Morocco constitutes a transfer of data abroad, which must be submitted to the CNDP: it is permitted if the hosting country is on its list of States ensuring adequate protection (deliberation No. 465-2013, amended in 2015) and requires prior authorization otherwise, subject to the exceptions provided for by law. In all cases, provide for contractual safeguards (confidentiality and security clauses with the host).
Do I have to appoint a data protection officer?
Law 09-08 does not require a data protection officer. Appointing an internal contact person responsible for CNDP declarations, requests from individuals and security is nevertheless recommended, and becomes necessary if the GDPR applies to your activity.
Related articles
Need help?
Here is what a compliant website requires: CNDP declaration, privacy policy, legal notice and general terms and conditions of sale. With Charikaty, you set up your company online, simply and quickly, through our SARL formation service, then our legal team and our partners support you in bringing your website into compliance. More than 250 companies have already been set up with Charikaty.
- 100% online
- MRE friendly
- WhatsApp support 24/7WhatsApp support
