AvocatLib
Find a LawyerLegal GuidesBlogAboutContact
LoginLawyer Portal
Contract Law in Morocco
AvocatLibExpertiseContract Law

Contract Law in Morocco

Contracts are the central legal instrument of Moroccan economic life. From a simple sale to an international distribution agreement, their drafting and performance follow precise rules from the 1913 Code of Obligations and Contracts. A specialized lawyer secures your commitments and defends your interests in case of dispute.

Code of Obligations and Contracts (DOC), Commercial Code, Law 31-08 on Consumer Protection Key legislation

Moroccan contract law: a fundamental framework inherited from the 1913 Dahir

Moroccan contract law rests on a centenary but still modern text: the Dahir forming the Code of Obligations and Contracts (DOC), enacted on August 12, 1913. Deeply inspired by French civil law and Islamic law, this text remains the cornerstone of every contractual relationship in Morocco β€” whether between two individuals, two domestic companies or an international partnership.

The DOC enshrines solid guiding principles: contractual freedom (parties may freely set the content of their agreement), the binding force of contracts ("the contract is the law of the parties") and good faith in performance. These principles shape all Moroccan economic relationships, from the lease signed between neighbors to joint-venture agreements between multinational groups.

Engaging a contract lawyer is not just having a document reviewed before signature. It means anticipating risk scenarios, translating economic intentions into enforceable clauses, planning for non-performance and negotiating exits. A poorly drafted contract can cost years of litigation; a well-drafted contract prevents disputes or, failing that, provides the weapons to win them.

Contract formation: consent, capacity, object and cause

For a contract to be valid in Morocco, the DOC requires four cumulative conditions: free and informed consent of the parties, their legal capacity to contract, a determined or determinable object, and a lawful cause. The absence of any one of these conditions can result in the nullity of the contract, sometimes years after signature.

Consent is protected by sanctioning defects: error (regarding substance or person), fraud (deceitful maneuvers to mislead the other party) and duress (physical or moral). Case law from Moroccan commercial courts and the Court of Cassation has refined the contours of each of these defects. A lawyer can identify in advance the ambiguous clauses that could later be qualified as fraud by omission.

Capacity to contract is a point of vigilance, particularly for companies (which must act within their corporate purpose) and minors or persons under guardianship. Contracts signed by a director acting beyond their authority can be challenged by the company itself. The lawyer systematically verifies bylaws, powers of attorney and prior authorizations (general meeting, board of directors).

The object of the contract must be determined, possible and lawful. A contract concerning something outside commerce, or whose object is too imprecise, is null. The cause β€” the motive that drove each party to contract β€” must also be lawful and consistent with Moroccan public policy. The presence of anti-competitive practices or money laundering in the cause can result in outright annulment.

Contract performance: binding force and unforeseen circumstances

Once validly formed, the contract binds the parties who must perform it in good faith. The DOC enshrines the principle "pacta sunt servanda": the contract holds the place of law for those who made it. This binding force extends to consequences that the nature of the obligation, custom or law imply, even if not expressly stipulated.

In case of non-performance by one party, several sanctions are available. The exception of non-performance allows one party to suspend its own performance until the other performs. Contract termination ends the engagement and requires restitutions. Forced specific performance can be ordered by the court when still possible. Damages compensate the suffered loss.

Force majeure β€” an unforeseeable, irresistible and external event β€” exonerates the debtor from liability. The COVID-19 pandemic reignited the Moroccan debate on qualifying health events as force majeure. Recent case law requires a case-by-case assessment depending on the sector, the contract and the parties' diligence. Drafting an appropriate force majeure clause is now essential for any structuring contract.

Hardship β€” economic upheaval making performance excessively burdensome without making it impossible β€” is treated differently across contracts. Moroccan law does not broadly admit revision for hardship, unlike recent French law. Hence the importance of contractually providing hardship, revision or indexation clauses for long-term contracts.

Main types of contracts in Morocco and their specifics

Sales contracts are governed by articles 478 to 717 of the DOC. Their formation requires agreement on the thing and the price. For real estate sales, a notarial or adoulary writing is required, as well as registration at the Land Registry for registered properties. The warranty against eviction and against hidden defects are matters of public policy β€” their total exclusion is not valid.

Lease contracts (residential, commercial, rural) follow specific rules depending on the nature of the premises. Commercial leases fall under Law 49-16 on commercial leases, which enshrines the right to renewal and eviction indemnity. Residential leases for housing are governed by Law 67-12. Drafting the duration clause, rent revision and termination conditions is crucial.

Commercial contracts β€” distribution, franchise, commercial agency, services, partnership β€” combine the rules of the DOC with those of the Commercial Code. Law 53-95 on commercial agency, for example, grants the agent a contract termination indemnity in certain cases. Franchise contracts require a pre-contractual information document. Exclusive distribution contracts must comply with competition law.

International contracts raise specific issues: choice of applicable law, competent jurisdiction or arbitration clause, contract language, exchange formalities. Morocco has been a party to the Vienna Convention on the International Sale of Goods (CISG) since 2019 β€” a major development for exporters and importers. International arbitration, governed by Law 95-17, is increasingly used for cross-border disputes.

How to choose your contract lawyer in Morocco

Contract law is both technical and strategic. Your lawyer must master the DOC, sector-specific laws (commercial, real estate, consumer) and the evolution of case law from commercial courts and the Court of Cassation. Favor a lawyer who regularly drafts and negotiates contracts in your business sector β€” a food distribution contract is not drafted like a software license agreement.

For international contracts, verify command of legal English and knowledge of applicable international conventions (CISG, New York Convention on Arbitration, tax treaties). A Moroccan lawyer comfortable in several legal systems (common law, civil law) will be better positioned to negotiate balanced terms with a foreign party.

Experience in contractual litigation is an asset: a lawyer who has pleaded before Moroccan courts knows which clauses hold up in disputes and which are systematically annulled or requalified. This experience directly feeds the preventive drafting phase.

Availability and responsiveness matter. Contract negotiations often span several weeks, with rapid back-and-forth between parties. An overworked lawyer who replies two days late can lose a deal. On AvocatLib, you can compare profiles, verify specializations and contact contract lawyers directly across Morocco.

Find a Lawyer by City

Lawyers specialized in Contract Law across Morocco

CasablancaRabatMarrakechFesTangierAgadirMeknesOujdaKenitraTetouanNadorMohammediaEl JadidaBeni MellalSafi

Frequently Asked Questions About Contract Law in Morocco

Must a contract be in writing in Morocco?
No, the principle is consensualism: a contract is formed as soon as consents are exchanged, without any particular form. However, writing is required for certain contracts (real estate sale, commercial lease, marriage contract) or for proof beyond a certain amount (10,000 dirhams under the DOC, except in commercial matters where freedom of proof prevails). Beyond these obligations, writing is strongly recommended for any significant commitment: it sets the terms, prevents disputes and facilitates judicial proof.
What is the difference between contract nullity and termination?
Nullity sanctions a defect in validity at the time of contract formation (defect of consent, unlawful object, incapacity). It retroactively erases the contract, as if it never existed, and requires reciprocal restitutions. Termination, on the other hand, sanctions non-performance by one party of a validly formed contract. It ends the contract for the future and may give rise to damages. The distinction has important practical consequences regarding prescription and restitutions.
How is a verbal contract proven in Morocco?
For civil contracts, proof by witnesses or presumptions is admitted up to 10,000 dirhams. Beyond that, writing is in principle required. In commercial matters, proof is free regardless of the amount: testimonies, correspondence (emails, WhatsApp, SMS), invoices, accounting records and bank statements can all be produced. A start of written proof (an email mentioning the agreement, for example) further allows testimonial proof to be admitted even beyond the legal threshold. Systematic preservation of exchanges is therefore essential.
What if the other party refuses to perform the contract?
Several avenues are open depending on the situation. A formal notice of default (via bailiff or registered mail) is almost always the mandatory preliminary: it triggers default interest and constitutes the debtor at fault. Then you can demand specific performance (if still possible), suspend your own performance by the exception of non-performance, or seek termination of the contract with damages. For commercial contracts, the commercial court has jurisdiction; for civil contracts, the court of first instance. Arbitration is possible if an arbitration clause has been stipulated.
Can force majeure exempt me from performing my contract?
Yes, on three cumulative conditions: the event must be unforeseeable (impossible to anticipate at the time of conclusion), irresistible (impossible to prevent or overcome with reasonable diligence) and external to the debtor's will. Wars, natural disasters, certain administrative decisions and β€” depending on the case β€” pandemics can qualify as force majeure. The COVID-19 pandemic gave rise to nuanced case law: everything depended on the sector, the contract date and the parties' diligence. A well-drafted force majeure clause in your contract is precious because it can broaden or narrow the legal definition.

Need a contract lawyer?

Browse our directory of lawyers specialized in contract law in Morocco. Drafting, negotiation, litigation: find the right counsel for your project.

Find a contract lawyer

Other Practice Areas

Discover all areas of Moroccan law

πŸ“ŠBusiness LawπŸ‘¨β€πŸ‘©β€πŸ‘§Family Lawβš–οΈCriminal LawπŸ’ΌLabor Law🏠Real Estate Law🧾Tax LawπŸ›οΈAdministrative Law🏦Banking LawπŸ’‘Intellectual PropertyπŸ›’Consumer Law🌍Immigration LawπŸ₯Medical Law🌱Environmental Law🏒Corporate Law

Sources & References

  • Dahir des Obligations et Contrats (DOC) - SGG
  • Loi 31-08 sur la protection du consommateur - SGG
  • Loi 49-16 sur les baux commerciaux - SGG
  • Convention de Vienne sur la vente internationale de marchandises (CVIM)
  • Portail Adala - Justice en ligne
AvocatLib

Β© 2026 AvocatLib. Tous droits rΓ©servΓ©s.