Civil Law And Future Evidence Law Automation In Morocco

1. Introduction

Future Evidence Law Automation in Morocco refers to the use of artificial intelligence (AI), digital evidence-management systems, electronic signatures, automated document verification, blockchain technology, and electronic court platforms to collect, authenticate, preserve, analyse, and present evidence in civil proceedings.

The objective is to modernise Morocco's civil justice system by making the evidentiary process:

Faster and more efficient.

More transparent and reliable.

Less dependent on physical documents.

More accessible to litigants and lawyers.

Better equipped to handle electronic transactions and digital disputes.

More resistant to evidence manipulation, forgery, and destruction.

However, automation must remain subordinate to judicial independence. An algorithm may organise evidence, identify inconsistencies, or assist in authentication, but it cannot independently determine the truth or replace the judge's evaluation of evidence.

Important distinction: Moroccan law already recognises electronic evidence. Fully automated evidence assessment and AI-based judicial decision-making, however, should be understood as future developments rather than established legal procedures.

2. Legal framework governing evidence automation in Morocco

Morocco's evidence framework is principally based on the Dahir of 12 August 1913 forming the Code of Obligations and Contracts (DOC), subsequently amended by legislation concerning electronic transactions.

A. Article 399 – Burden of proof

Article 399 establishes that the person asserting an obligation must prove it.

Under automated evidence systems, this principle means that software cannot automatically transfer the burden of proof from one litigant to another.

For example, where a claimant alleges that an electronic contract exists, the claimant must establish the relevant obligation.

B. Article 400 – Proof of discharge

Once the claimant establishes the existence of an obligation, the party asserting that the obligation has been extinguished or cannot be enforced must establish that defence.

Automated systems could organise payment confirmations, transaction records, receipts, and discharge certificates to assist the court.

C. Article 404 – Legally recognised forms of evidence

Article 404 recognises five principal forms:

Admission by a party.

Documentary evidence.

Testimonial evidence.

Presumptions.

Oaths and refusal to swear.

Future automation must accommodate all these forms rather than concentrate exclusively on electronic documents.

D. Articles 417 and 417-1 – Electronic documentary evidence

These provisions are particularly important.

Article 417 recognises documentary evidence in different forms and permits courts to resolve conflicts between documentary evidence through appropriate means.

Article 417-1 gives electronic writing the same evidentiary force as paper writing, provided that:

The person from whom it originates can be duly identified.

The document is established under conditions that guarantee its integrity.

Its preservation conditions protect its reliability.

This creates the legal foundation for electronic evidence-management platforms.

WIPO Lex+1

 

E. Articles 417-2 and 417-3 – Electronic signatures

Article 417-2 requires a reliable identification process linking the electronic signature to the document.

Article 417-3 establishes a presumption of reliability, subject to contrary proof, for a secure electronic signature satisfying the applicable requirements.

These provisions are important for automated contract verification, digital acknowledgements, and electronic court submissions.

F. Law No. 53-05 on electronic exchange of legal data

Law No. 53-05, promulgated in 2007, introduced important rules governing electronic legal transactions and amended the DOC to recognise electronic writing and signatures.

It provides the foundation for integrating electronic documents into Morocco's civil evidence framework.

G. Law No. 43-20 on trust services for electronic transactions

Law No. 43-20 modernises the framework for electronic trust services, including electronic signatures, electronic seals, electronic time stamps, and related trust mechanisms.

It is particularly relevant to future automated authentication and verification systems.

3. Meaning and scope of future evidence law automation

Evidence law automation involves using digital technologies to perform administrative and technical tasks traditionally carried out manually by lawyers, court personnel, experts, and judges.

A. Automated evidence collection

A future Moroccan civil justice platform could collect:

Electronic contracts.

Business correspondence.

Emails and messages.

Bank transaction records.

Digital invoices.

Electronic signatures.

Photographs and videos.

Property ownership records.

Digital delivery confirmations.

The system could classify these materials according to their relevance to the legal dispute.

Legal significance: Automation would reduce administrative burdens while preserving the requirements of Articles 399 and 404 of the DOC.

B. Automated evidence authentication

Authentication is one of the most important elements of electronic evidence law.

An automated authentication platform could examine:

The identity of the document's creator.

Electronic signature validity.

Date and time of creation.

Document modification history.

Digital fingerprints or cryptographic hashes.

The integrity of the original file.

The reliability of its storage and transmission.

For example, in a dispute concerning an electronic commercial contract, the system could compare the original document with the version submitted to court.

If the document has been modified, the system could flag the discrepancy for judicial examination.

C. Automated evidence classification

AI could classify evidence into different categories:

Evidence categoryPossible automated function
Electronic contractsContract identification and classification
EmailsSender identification and chronology
Bank recordsTransaction comparison
PhotographsMetadata examination
VideosTimestamp and integrity verification
Expert reportsTechnical document classification
Witness statementsIdentification of relevant factual assertions
Property documentsOwnership record comparison

Classification should not be confused with a judicial finding that evidence is true.

D. Automated evidence preservation

Evidence preservation is essential because digital evidence can be modified, deleted, or lost.

Future systems could introduce:

Secure electronic storage.

Blockchain-based integrity records.

Timestamp verification.

Access-control mechanisms.

Encrypted backups.

Audit trails.

Evidence preservation certificates.

A digital record should retain its original form, relevant metadata, and history of access.

E. Automated evidence analysis

AI systems could assist lawyers and judges by identifying:

Contradictions between documents.

Differences between contract versions.

Inconsistencies in payment records.

Missing documentary evidence.

Conflicting dates.

Duplicate submissions.

Potentially altered documents.

The final assessment must remain with the competent judge, particularly where authenticity or credibility is disputed.

4. Role of artificial intelligence in Moroccan evidence law

AI could transform the administration of civil evidence through several applications.

1. Document recognition: Optical character recognition could convert scanned contracts, invoices, and court documents into searchable text.

2. Evidence comparison: AI could compare multiple versions of commercial contracts and identify differences.

3. Chronological reconstruction: Automated systems could arrange emails, transactions, and notices into a timeline.

4. Fraud detection: Algorithms could flag unusual document alterations, suspicious signatures, and inconsistent transaction records.

5. Evidence relevance assistance: AI could help identify which documents relate to particular legal issues.

6. Automated case files: Courts could maintain digitally organised evidentiary records accessible to authorised participants.

Nevertheless, AI-generated conclusions must be explainable, reviewable, and open to challenge.

5. Eight important Moroccan judicial decisions and their relevance

The following decisions are particularly useful for understanding the legal principles governing future evidence automation.

An important qualification is necessary: these are Moroccan judicial decisions concerning electronic correspondence, judicial expertise, documentary proof, and the assessment of evidence. They are not eight judgments directly approving AI-powered courts or automated evidence systems.

Case 1. Court of Cassation, Commercial Chamber – Decision No. 250/1, 6 June 2013

Case No. 2012/1/3/894

Subject: Evidentiary value of electronic correspondence.

The Moroccan Court of Cassation considered whether electronic messages identifying their author could establish a commercial debt despite the absence of a formal electronic signature.

The Court accepted the evidentiary value of the correspondence because the author was identifiable and the messages contained an express acknowledgement of the debt.

Legal principle: An electronic communication does not automatically lose its evidentiary value merely because it lacks a formal electronic signature.

Relevance to automation: An automated evidence system should not reject every unsigned email. It should assess authorship, integrity, and the circumstances of the communication.

Case 2. Casablanca Court of Appeal of Commerce – Decision No. 4565, 14 October 2019

Case No. 2019/8202/3626

Subject: Electronic acknowledgement of commercial debt.

The Court considered electronic correspondence concerning payment of an outstanding commercial invoice.

The correspondence indicated an intended international bank transfer to settle the disputed debt. The Court treated the email as an acknowledgement of the obligation under Article 417-1 of the DOC.

It also rejected the need for additional judicial expertise in the circumstances.

Legal principle: Electronic correspondence can establish a commercial obligation where its authenticity is not disputed and its contents demonstrate acknowledgement of the debt.

Relevance to automation: Automated platforms could identify payment acknowledgements and link them to corresponding invoices and bank transactions.

Case 3. Court of Cassation, Commercial Chamber – Decision No. 94/1, 14 March 2013

Case No. 2012/1/3/771

Subject: Judicial examination of expert evidence.

The Court addressed a situation in which an appellate court adopted an expert report without responding to specific and documented objections raised by a party.

The Court held that failure to address material arguments challenging the expert's conclusions could result in insufficient reasoning.

Legal principle: Courts must properly examine relevant objections to expert evidence.

Relevance to automation: An AI system cannot simply generate an expert-evidence score and automatically exclude objections. Parties must have an opportunity to challenge its methodology and conclusions.

Case 4. Court of Cassation, Commercial Chamber – Decision No. 482/1, 9 October 2014

Case No. 2014/1/3/152

Subject: Selection between competing expert reports.

The Court recognised the power of the lower courts to assess competing expert reports.

A court could rely on a judicially ordered, adversarially prepared report containing detailed findings while rejecting a competing report submitted by one party.

Legal principle: The evidentiary value of an expert report depends on its quality, procedure, and judicial assessment.

Relevance to automation: Automated systems should be capable of comparing competing technical reports without deciding which report is legally conclusive.

Case 5. Court of Cassation, Commercial Chamber – Decision No. 139/3, 13 May 2015

Case No. 2014/1/3/1160

Subject: Judicial assessment of expert reports and counter-expertise.

The Court considered the adoption of an expert report and the request for a further examination.

It recognised that a court which considers an expert report sufficiently persuasive after addressing the objections raised need not necessarily order another expertise.

Legal principle: A further expert examination is not automatically required whenever a party disagrees with an existing report.

Relevance to automation: An automated system could identify repeated or unsupported objections, but the decision to order additional expertise must remain judicial.

Case 6. Court of Cassation, Commercial Chamber – Decision No. 235/3, 24 April 2019

Case No. 2018/3/3/1051

Subject: Reliability of technical expertise.

The Court examined a decision that rejected previously ordered expert reports and decided the dispute without obtaining a new expert examination or adequately explaining the technical basis for rejecting those reports.

The Court considered that the decision lacked an adequate legal foundation.

Legal principle: A court must provide sufficient reasoning when rejecting technical findings that are material to the dispute.

Relevance to automation: AI-generated technical assessments must not be accepted or rejected without meaningful judicial reasoning.

Case 7. Court of Cassation, Commercial Chamber – Decision No. 221/3, 22 July 2020

Case No. 2019/3/3/586

Subject: Expert evidence in commercial financial disputes.

The Court examined the evidentiary value of an expert report concerning a commercial debt arising from telecommunications services.

The report relied on subscription contracts and accounting documents. The Court accepted that the appellate court could rely on a sufficiently complete and detailed report to establish the amount owed.

Legal principle: A properly supported expert report can provide sufficient evidence of a commercial claim.

Relevance to automation: Automated financial evidence systems could compare invoices, subscription agreements, account statements, and transaction histories before producing an evidentiary report.

Case 8. Court of Cassation, Commercial Chamber – Decision No. 662/1, 7 October 2021

Case No. 2019/3/3/1287

Subject: Evidentiary value of banking expert reports.

The Court examined a banking debt established through a judicial expert report based on account statements, the loan agreement, and the repayment schedule.

The appellate court's reliance on the report was upheld because the expert had performed the assigned examination and the debtors had not established their contrary allegations.

Legal principle: A properly conducted judicial expertise based on financial documents can establish the amount of a banking debt.

Relevance to automation: This decision is relevant to automated banking evidence verification, loan-account reconciliation, and electronic financial record analysis.

Jurisprudence+7

6. Data protection and privacy in automated evidence systems

Evidence automation must comply with Moroccan privacy and data-protection requirements.

Law No. 09-08 on the protection of individuals with regard to the processing of personal data

Law No. 09-08 is important because automated evidence platforms may process:

Personal identification information.

Financial records.

Private correspondence.

Employment records.

Family-related documents.

Property information.

Biometric information.

Automated systems must incorporate appropriate safeguards for personal information.

Principal legal requirements

Lawful and legitimate processing of personal data.

Appropriate security measures.

Protection against unauthorised disclosure.

Proper control over access to court records.

Appropriate retention and deletion policies.

Respect for applicable rights of data subjects.

The National Commission for the Control of Personal Data Protection (CNDP) has an important supervisory role.

7. Blockchain technology and evidence automation

CustodyBlock: A Distributed Chain of Custody Evidence Framework

 

 

AI-powered digital arbitration framework leveraging smart contracts and electronic evidence authentication | Scientific Reports

 

 

CSI Technology Group | Courts

 

10

 

Blockchain could provide a supplementary mechanism for preserving the integrity of electronic evidence.

Its potential applications include:

A. Evidence timestamping

Recording when an electronic document was submitted or registered.

B. Document integrity

Generating cryptographic hashes to identify subsequent modifications.

C. Evidence custody records

Recording who accessed, transferred, or handled particular digital evidence.

D. Electronic contract verification

Supporting the verification of contractual documents and associated transaction records.

However, blockchain does not establish that the original information is truthful. It can demonstrate that recorded information has not subsequently changed, but cannot independently establish that the information was accurate when first entered.

8. Application in different areas of Moroccan civil law

Area of civil lawPotential automation
Contract lawElectronic contract authentication
Banking lawLoan and payment verification
Property lawDigital title and ownership verification
Family lawSecure organisation of family-related documents
Commercial lawInvoice and transaction verification
Employment lawDigital employment records
Insurance lawAutomated claim-document comparison
Construction lawTechnical reports and photographic evidence
Inheritance lawElectronic organisation of succession documents
Consumer protectionDigital receipts and transaction histories

A. Contractual disputes

Automated systems could compare different versions of a contract and identify changes in payment obligations, delivery terms, and contractual conditions.

B. Banking disputes

Digital platforms could compare loan agreements, repayment schedules, account statements, and payment confirmations.

C. Property disputes

Future systems could facilitate the verification of property documents and compare relevant registration records.

They must not replace legally required land-registration procedures.

D. Family disputes

Secure digital systems could organise marriage certificates, financial documents, maintenance records, and other relevant evidence.

Special safeguards would be required because family disputes can involve particularly sensitive personal information.

9. Challenges to future evidence law automation in Morocco

Despite its potential, evidence automation presents several legal and technological difficulties.

1. Authenticity problems: A digitally submitted document may have been manipulated before being uploaded.

2. Algorithmic errors: AI may incorrectly identify a document, misinterpret a statement, or overlook important evidence.

3. Cybersecurity risks: Court databases may become targets of hacking, data theft, and unauthorised modification.

4. Digital inequality: Individuals without reliable internet access or technical knowledge may face difficulties participating in digital proceedings.

5. Lack of transparency: Parties must be able to understand and challenge the methods used to analyse their evidence.

6. Cross-border evidence: Electronic records stored outside Morocco may create jurisdictional, privacy, and access difficulties.

7. Judicial independence: Automated systems must not exercise judicial authority or determine disputes without meaningful human assessment.

8. Preservation difficulties: Digital evidence may be lost because of outdated formats, damaged storage devices, or inadequate backup arrangements.

10. Proposed future reforms for Morocco

Morocco could develop a comprehensive framework for automated civil evidence administration through the following reforms.

Proposed reformExpected legal benefit
National electronic evidence platformCentralised evidence administration
AI-assisted document examinationFaster document analysis
Digital evidence certificationImproved authentication
Blockchain timestampingBetter integrity records
Standardised digital forensic proceduresReliable technical examination
Independent algorithmic auditsReduced technological bias
Judicial AI trainingBetter understanding of automated evidence
Electronic evidence appeal proceduresImproved procedural protection
Cybersecurity standardsProtection of judicial information
Digital access assistanceGreater access to justice

Proposed institutional structure

A future Moroccan evidence automation framework could involve:

Ministry of Justice: Development and administration of judicial digital infrastructure.

Courts: Independent examination and evaluation of evidence.

Judicial experts: Technical verification of disputed electronic materials.

CNDP: Personal-data protection oversight within its legal mandate.

Electronic trust-service providers: Authentication and certification services under applicable law.

Lawyers: Protection of litigants' procedural and evidentiary rights.

11. Fundamental legal principles that must govern automation

Future Moroccan legislation should preserve the following principles.

Legality: Evidence must be collected and presented according to applicable law.

Authenticity: The origin and identity of electronic evidence must be verifiable.

Integrity: Documents must be protected against unauthorised alteration.

Adversarial proceedings: Both parties must be able to examine and challenge evidence.

Judicial independence: The judge retains responsibility for evaluating evidence.

Transparency: Automated analysis must be sufficiently explainable.

Privacy: Personal information must receive appropriate protection.

Human oversight: Important evidentiary decisions must not be delegated entirely to algorithms.

12. Conclusion

Civil Law and Future Evidence Law Automation in Morocco represents an important stage in the modernisation of civil justice.

The existing legal foundation, particularly Articles 399, 400, 404, 417, 417-1, 417-2, and 417-3 of the Code of Obligations and Contracts, permits the development of increasingly sophisticated electronic evidence systems.

Law No. 53-05 and Law No. 43-20 provide additional foundations for electronic transactions and trust services.

The eight judicial decisions discussed above demonstrate important principles concerning electronic correspondence, documentary proof, judicial expertise, evidentiary reliability, and the judge's responsibility to evaluate evidence.

The future of Moroccan evidence law should therefore combine:

Artificial intelligence.

Electronic signatures.

Digital forensic examination.

Secure evidence storage.

Blockchain-based integrity verification.

Automated documentary analysis.

Independent judicial supervision.

Ultimately, the purpose of evidence law automation should not be to replace the Moroccan judge with artificial intelligence, but to equip the judiciary with more reliable, efficient, transparent, and secure methods of administering justice.

Research qualification: The case-law references above include commercial-chamber decisions because they address evidentiary principles relevant to civil litigation. Several are reported as unpublished decisions in the case-law database. Their relevance to automation is analytical and does not mean the courts have endorsed automated adjudication.

 

 

LawGratis provides pro bono legal aid and resources to empower communities. Join us in making justice reachable for everyone! Follow our community on Instagram, YouTube, Facebook, and LinkedIn.

LEAVE A COMMENT