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
Frequently Asked Questions About Contract Law in Morocco
Must a contract be in writing in Morocco?
What is the difference between contract nullity and termination?
How is a verbal contract proven in Morocco?
What if the other party refuses to perform the contract?
Can force majeure exempt me from performing my contract?
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 lawyerOther Practice Areas
Discover all areas of Moroccan law

