Consumer law in Morocco: laws, articles and answers

Warranties, online purchases, withdrawal, unfair terms, credit. Find the official texts, the essential articles explained simply and answers to the most frequent questions.

Consumer protection in Morocco is governed by Law No. 31-08 of 2011: information, unfair terms, distance and online sales, door-to-door selling, guarantees, consumer credit and mortgage credit. It applies to contracts between a professional and a consumer.

The general rules of sale (hidden defects, delivery) remain in the DOC, and product safety is covered by special texts.

What this area covers

  • Information and labelling
  • Unfair terms
  • Online purchases and distance selling
  • Door-to-door selling
  • Guarantees and hidden defects
  • Consumer credit and mortgage credit
  • Consumer associations

Institutions and procedures

  • Consumer protection associations — inform and may bring legal action
  • Consumer offices (Khidmat Al Moustahlik) — receive complaints
  • Court of first instance — hears consumer disputes

Consumer law: the essential rules

  1. After an online purchase, the consumer has 7 days to withdraw, extended to 30 days if the seller has not confirmed the mandatory information in writing (Law No. 31-08, art. 36).
  2. The seller must refund within 15 days of the withdrawal (art. 37); custom-made goods are excluded from the right of withdrawal (art. 38).
  3. A clause that creates a significant imbalance to the detriment of the consumer is unfair (art. 15); it is void, but the rest of the contract continues to apply (art. 19).
  4. The door-to-door selling contract is in writing and contains mandatory particulars on pain of nullity (art. 48).
  5. In consumer credit, the lender must bring a payment action within 2 years of the payment incident, on pain of foreclosure (art. 111).
  6. Against a professional seller, an action for hidden defects in movable property is time-barred after one year from delivery (art. 65).

Each rule links to the official article. General legal information: only publication in the Official Bulletin is authoritative.

Reference texts

Key articles

Frequent questions

Practical guides

Document templates

Glossary

Right of withdrawal
the right to cancel a distance purchase without giving reasons
Unfair term
a clause that unbalances the contract to the detriment of the consumer
Foreclosure
loss of a right of action for failure to act within the time limit

Questions and answers

How many days to withdraw after an online purchase?

7 days, or 30 days if the seller has not confirmed the mandatory information in writing (Law No. 31-08, art. 36).

How long does the seller have to refund?

At the latest 15 days after withdrawal (art. 37).

Does an unfair term cancel the entire contract?

No, only the clause is void if the contract can survive without it (art. 19).

What is the time limit for a hidden defect in a product bought from a professional?

One year from delivery (art. 65).

Latest official texts

  1. Laws and decreesظهير شريف رقم 1.11.03 بتنفيذ القانون رقم 31.08 بتحديد تدابير لحماية المستهلك — Présidence du ministère public2026-11-18
  2. Laws and decreesدورية رقم 13 س/ر ن ع بتاريخ 08 مارس 2018 حول مخالفات القانون رقم 31.08 المتعلقة بحماية المستهلك — Présidence du ministère public2026-11-18

Other areas of law