Civil Law And Digital Traffic Management Systems In Morocco .
Civil Law and Digital Traffic Management Systems in Morocco
1. Introduction
Digital traffic management systems in Morocco use technology to monitor roads, detect traffic offences, manage congestion, regulate parking, improve road safety, and administer traffic-related penalties. These systems can include automated speed cameras, electronic traffic records, digital fine-payment platforms, intelligent traffic signals, vehicle-registration databases, and data-sharing systems used by transport and law-enforcement authorities.
The civil-law issues arise when a digital system causes or contributes to a legal dispute—for example, when a driver challenges a radar-generated fine, a faulty traffic signal causes an accident, an authority wrongly identifies a vehicle owner, or inaccurate electronic records result in financial loss.
Morocco's principal legal framework includes:
Law No. 52-05 on the Highway Code, as amended, including provisions governing automated detection and proof of traffic offences.
Decree No. 2.10.419, which implements provisions of the Highway Code, including rules concerning speed-control equipment.
The Moroccan Code of Obligations and Contracts, for relevant civil-liability and compensation questions.
The Code of Civil Procedure and applicable criminal-procedure rules, depending on the nature of the dispute.
Law No. 09-08 on the protection of individuals with regard to the processing of personal data, where traffic systems process identifiable individuals' information.
A crucial distinction is that a traffic offence and a civil claim for compensation are not the same proceeding. A fine may concern an alleged breach of the Highway Code, while a compensation claim may concern personal injury, property damage, an administrative fault, or defective traffic infrastructure.
2. Legal framework for digital traffic management
A. Automated detection of traffic offences
Articles 196–200 of Law No. 52-05 establish important rules for the electronic recording and automated detection of specified traffic offences.
In particular:
Article 196 addresses the evidential status of traffic reports drawn up at the scene or based on electronic records, subject to proof to the contrary.
Article 197 permits specified offences, including speeding, to be detected through technical devices operating automatically, even when the officer preparing the report was not physically present at the location of the offence.
Article 198 addresses information recorded by the automated system, including identifying and contextual information relating to an offence.
Articles 199–200 address automated processing and the procedure for preparing and notifying an offence report.
These provisions are important because they give qualifying technical evidence a statutory role. They do not mean, however, that any camera, privately developed application, or unverified database can automatically establish liability. The device and procedure must satisfy the applicable legal requirements, and the affected person must be able to contest the evidence in accordance with the law.
B. Electronic traffic fines and payment
Morocco also operates an electronic service for paying certain traffic fines detected by fixed radar systems. Such services can make the processing of traffic offences more efficient, but the existence of an electronic payment record does not by itself resolve every dispute about the original offence, the identity of the responsible person, or the lawfulness of the underlying procedure.
A payment interface, offence record, and legally effective notification are separate elements and should not be confused.
C. Civil liability for traffic-related harm
Where a digital traffic system contributes to an accident or financial loss, liability depends on the facts and the applicable legal rules. Relevant questions may include:
Was the traffic signal, radar, or traffic-control device defective?
Did a public authority, contractor, driver, vehicle owner, or other party breach a legal duty?
Did the alleged fault cause the injury or damage?
Can the loss be established through reliable evidence?
Does a special statutory rule govern the claim or the competent court?
For example, an incorrect traffic-light sequence could potentially contribute to a collision. But the mere existence of a malfunction does not automatically prove who is legally responsible. The claimant must establish the elements required by the applicable liability regime.
3. Six or more relevant Moroccan judicial decisions
The cases below illustrate the law governing automated traffic evidence and the broader legal principles that apply to digital traffic systems. It is important to distinguish direct decisions on radar evidence from analogous decisions about traffic liability or procedural legality. Moroccan case law specifically addressing AI-based traffic-light optimisation, predictive traffic algorithms, or smart-city platforms is more limited.
Case 1: Moroccan Court of Cassation, Criminal Chamber — Decision No. 81/13, 26 February 2025
File: Criminal File No. 1949/6/13/2025, also reported in a differently ordered file-number format.
Issue: Whether a speeding offence may be established by an approved automated radar when the officer preparing the report was not the officer who directly observed the offence.
The case concerned a speeding measurement made by a radar. The data was transmitted electronically between officers, and the officer who prepared the report had not personally witnessed the original measurement. A lower court had treated that circumstance as invalidating the evidence.
The Court of Cassation quashed that judgment, reasoning that Article 197 of the Highway Code permits specified offences to be established through authorised automatic technical devices. The electronic transmission of the recorded data did not, by itself, invalidate the evidence where the original observation was made using a legally approved device.
Legal significance: An automated traffic record is not necessarily invalid simply because a different authorised officer prepares the report. The key questions include the legal authority for the device, the reliability of the underlying record, and compliance with the governing procedure.
Application: This is the most directly relevant reported authority for digital traffic enforcement and electronic transmission of radar evidence.
Case 2: Constitutional Council of Morocco — Decision of 29 December 2008 concerning the 2009 Finance Law
Issue: Whether provisions introducing a special mechanism for collecting traffic fines detected by automatic devices could properly be included in the Finance Law.
The Constitutional Council considered provisions of the 2009 Finance Law that sought to establish a special collection procedure for certain traffic offences detected through automatic devices, including radar cameras.
The Council declared the relevant subsection unconstitutional because it was connected to a new legal framework for establishing traffic offences that had not yet been enacted through the appropriate legislative process. The decision concerned the constitutional and legislative procedure used to introduce the mechanism, rather than a finding that all automated traffic detection was inherently unlawful.
Legal significance: Digital enforcement systems require a proper statutory basis. An administrative authority cannot assume that a new enforcement power is lawful merely because it is technologically feasible or administratively convenient.
Application: When introducing automated number-plate recognition, smart traffic penalties, or new electronic enforcement powers, authorities must ensure that the necessary legal authorisation and procedural framework exist.
Case 3: Ouarzazate Court of First Instance — Judgment of 31 December 2024
Issue: Whether a speeding report was valid where the officer who stopped the driver and prepared the report was not the officer who recorded the offence with a mobile radar.
The court reportedly acquitted the driver and invalidated the report, reasoning that the officer who prepared it had not personally observed the offence and had received the radar image electronically.
The judgment was subsequently quashed by the Court of Cassation in Decision No. 81/13 of 26 February 2025.
Legal significance: This judgment illustrates a procedural challenge to electronic evidence, but it should not be cited as the prevailing rule that electronically transmitted radar evidence is invalid. The subsequent Court of Cassation decision rejected that approach.
Application: A person challenging a traffic penalty should identify a legally material defect—such as an issue with the device, the record, identification, or required procedure—rather than assuming that electronic transmission alone makes the evidence inadmissible.
Case 4: Chefchaouen Court — Judgment of 19 March 2025
Issue: Validity of a speeding report based on a radar that the driver alleged was not visible.
A report published in April 2025 described a judgment in which a court in Chefchaouen ruled in favour of a driver who challenged a speeding penalty based on a radar recording. The court reportedly invalidated the report and ordered repayment of the fine.
Legal significance: The judgment illustrates that automated traffic enforcement can be challenged in court. However, the available report does not establish that every concealed radar is unlawful, nor does it establish a general rule overriding Article 197 of the Highway Code.
Application: A driver disputing an automated penalty should identify the specific legal or evidential defect alleged and obtain the full judgment before relying on this decision. Its reasoning must also be considered alongside the subsequent Court of Cassation ruling discussed in Case 1.
Case 5: Moroccan Court of Cassation, Criminal Chamber — Decision No. 293/11, 19 February 2003
Issue: Driver liability and a pedestrian's use of a motorway.
The Court of Cassation examined a fatal road accident involving a pedestrian on a motorway. It criticised the lower court for assessing the driver's conduct without properly applying the special legal rules governing motorway access, including the prohibition on pedestrian traffic.
The decision was quashed because the legal reasoning did not adequately address the special legal regime and its effect on responsibility.
Legal significance: Traffic-related liability must be determined under the specific legal rules applicable to the road and the circumstances of the accident, not solely by reference to general duties of care.
Application to digital traffic management: A traffic-management system should account for road classifications, access restrictions, and applicable traffic rules. A model that applies the same rules to motorways, urban roads, and pedestrian zones may produce legally unreliable classifications.
Case 6: Moroccan Court of Cassation, Criminal Chamber — Decision No. 954, 10 May 2000
Issue: Allocation of responsibility where both the driver and the injured person contributed to an accident.
The Court of Cassation upheld the principle that responsibility may be apportioned where an accident results from the defendant's offence and the victim's own lack of vigilance.
Legal significance: Liability and compensation may depend on the contribution of different parties to the accident. The fact that an accident occurred does not automatically mean that one party must bear the entire loss.
Application to digital traffic management: When a collision occurs near an automated traffic signal or monitored junction, the electronic record should be assessed alongside the conduct of drivers, pedestrians, and other relevant circumstances. An algorithm's initial classification should not replace a legally required assessment of responsibility.
Case 7: Moroccan Court of Cassation, Civil Chamber — Decision No. 578, 22 February 2006
File: No. 778/1/5/2005.
Issue: A subsequent claim for compensation following the worsening of injuries from a traffic accident.
The Court of Cassation considered a claim for additional compensation based on a deterioration in injuries after an earlier compensation judgment. It accepted that a new claim could be brought for new harm not covered by the earlier judgment, where the relevant medical and causal evidence supported the claim.
Legal significance: The assessment of compensation should reflect the damage that is legally established. A prior decision does not necessarily resolve a claim relating to later deterioration that was not previously compensated.
Application to digital traffic management: Where an accident allegedly results from a malfunctioning traffic-control system, electronic records may help establish the original event, but medical evidence and proof of subsequent losses may still be needed to determine compensation.
Case 8: Moroccan Court of Cassation, Criminal Chamber — Decision No. 1995/11, 29 November 2006
Issue: An accident caused by an obstruction or structure on a public road rather than by a motor vehicle itself.
The Court of Cassation held that where an accident was caused by a wall erected on the roadway during public works, the lower court had incorrectly applied the special compensation regime for motor-vehicle traffic accidents. The matter instead required assessment under the ordinary rules of civil liability and the applicable insurance coverage.
Legal significance: The correct liability framework depends on the actual cause of the damage. A road accident does not necessarily fall under the same compensation rules merely because a vehicle was involved.
Application to digital traffic management: If an accident is caused by a defective signal installation, roadworks, a malfunctioning traffic-control device, or an infrastructure contractor's conduct, the relevant legal regime must be identified before assigning responsibility.
These last four decisions concern traffic liability and compensation rather than the operation of digital systems themselves. They are analogous authorities for disputes involving digitally managed roads.
4. Civil liability in digital traffic management
Digital traffic management can generate disputes between drivers, vehicle owners, public authorities, infrastructure operators, and technology contractors.
| Situation | Main legal issue | Evidence that may matter |
|---|---|---|
| Incorrect automated speeding notice | Reliability and legality of the record | Radar image, device records, vehicle registration |
| Wrong vehicle identification | Accuracy of number-plate recognition | Original image, registration records, system logs |
| Traffic signal malfunction | Fault, causation, and responsibility | Signal logs, maintenance records, CCTV, expert report |
| Incorrect electronic fine notice | Validity of notification and procedure | Notice, delivery record, official database entries |
| Unlawful processing of traffic data | Compliance with data-protection rules | Data collected, purpose, access logs, retention records |
| Accident involving road infrastructure | Applicable liability regime | Site inspection, engineering evidence, contracts, photographs |
A. Responsibility of public authorities
Where a public authority's conduct allegedly causes damage, liability must be assessed under the legal regime governing that authority and the particular activity. The mere fact that a traffic system is operated by a public body does not establish liability; the relevant fault or statutory basis, causation, and damage must be examined.
B. Responsibility of contractors and technology providers
A contractor responsible for maintaining a signal, radar, or electronic traffic platform may be exposed to contractual or civil claims if a proven breach of its obligations causes damage. The contract, maintenance specifications, technical records, and applicable legal regime will be important.
C. Responsibility of drivers and vehicle owners
The Highway Code distinguishes the driver's responsibility for an offence from the statutory provisions that may apply to the vehicle's registered owner. The precise allocation depends on the offence and the applicable statutory exceptions. An electronic record identifying a vehicle should not be confused with conclusive proof of every question concerning the driver's identity or liability.
5. Evidence, privacy, and procedural fairness
A. Integrity of electronic evidence
An effective traffic-management system should retain sufficient information to verify the record on which enforcement action is based. Depending on the system, this may include the original image, date and time, location, device identification, measured speed, calibration and maintenance records, and the chain by which the information was transmitted.
Electronic transmission does not automatically invalidate evidence, as the Court of Cassation's 2025 decision illustrates. Equally, electronic storage does not automatically guarantee accuracy.
B. Personal-data protection
Traffic cameras, number-plate recognition systems, and connected traffic applications can process information associated with identifiable individuals. Law No. 09-08 may therefore be relevant, depending on the data and processing activity.
Important safeguards include a lawful purpose, appropriate access controls, proportionate collection, security, and compliance with applicable rules governing retention and disclosure.
C. Right to challenge an alleged offence
A person who disputes an automated penalty should preserve the notice and supporting documents, identify the particular issue, and use the procedure applicable to the offence. Potential issues include incorrect vehicle identification, a disputed measurement, an inaccurate date or location, or non-compliance with a required procedural step.
A digital system should facilitate the lawful review of such objections rather than treating its own database entry as unchallengeable.
6. Recommended safeguards for Moroccan digital traffic systems
A sound system should incorporate:
Legal authorisation: Use automated enforcement only within the scope of the applicable legislation and implementing rules.
Technical reliability: Maintain and verify devices, including relevant calibration and maintenance records.
Traceable evidence: Preserve original records and document how they are transferred and processed.
Accurate identification: Use safeguards against mistaken vehicle or registration-plate identification.
Valid notification: Follow the applicable legal requirements for communicating an alleged offence and subsequent decisions.
Data protection: Limit access to traffic records and process personal information lawfully.
Human and judicial review: Allow disputed evidence and relevant circumstances to be examined under the proper procedure.
Clear liability allocation: Identify whether a dispute concerns the driver, vehicle owner, public authority, contractor, insurer, or technology operator.
7. Conclusion
Digital traffic management in Morocco is governed principally by Law No. 52-05 and its implementing framework, alongside the relevant rules on civil liability, compensation, procedure, and data protection.
The most direct reported authority is the Moroccan Court of Cassation's Decision No. 81/13 of 26 February 2025, which confirms that qualifying automated radar evidence does not become invalid simply because the officer preparing the report was not the officer who made the original observation or because the data was transmitted electronically.
The other decisions discussed above help explain the legal requirements governing automated enforcement, procedural legality, road-user responsibility, and compensation. They should not be represented as direct judicial approval of every type of smart traffic technology.
The governing principle is that digital traffic systems can support enforcement and improve road safety, but their legal consequences must remain grounded in statutory authority, reliable evidence, fair procedure, and the applicable rules of liability.

comments