Guide · Law 82-21

Law 82-21 explained simply

Law 82-21 on the self-production of electrical energy and its decree 2-25-100 apply. The rule is simpler than it looks: two numbers — your power and your connection level — are enough to place you in one of the three regimes below, whether your installation is new or already in place. Here's how to place yourself, without jargon.

Where does the law stand? · verified on 5 October 2026

In force

Implementing decree 2-25-100 (in force) and ANRE decision 04/26. ANRE surplus tariff (decision 04/26):0.18 DH/kWh off-peak, 0.21 DH/kWh at peak, excluding taxes, for installations connected at medium, high or very high voltage (MV/HV/EHV), whatever their regime.

Not yet published

In low voltage (LV), whatever the regime — including a shop of 11 kW or more under a connection agreement — resale of the surplus is not open as of today. Do not take the MV/HV tariff above as the one for your home or your shop.

Already have an installation in place? Article 33 governs its regularization, regardless of this tariff —regularize your existing installation →.

Declaration

Below 11 kW at low voltage — or off-grid, on an isolated site — you have nothing to get validated: a prior declaration, filed before commissioning, is enough. It's a formality, not a request for authorisation, and it's the case for the vast majority of villas.

Connection agreement

Above the declaration threshold and up to 5 MW, as soon as you inject onto the grid at low or medium voltage, you need to secure a connection agreement from the distribution grid operator concerned before starting. This is the typical case for business sites.

Authorisation

From 5 MW, at medium, high or very high voltage, the scale changes: a full, formal authorisation must be obtained before breaking ground. Few private rooftops are concerned.

And if my installation already exists?

The law does not forget the installations put in place before it: its Article 33 governs bringing them into line (exact text on our Law 82-21 page). The missing file — declaration, connection agreement or authorisation — depends on the regime that applies to you above. Once regularised, an existing installation joins the legal framework just like a new one, and the process can begin today.

FAQ

Law 82-21 — frequently asked questions

Which Law 82-21 regime applies to a villa in Morocco?

Under 11 kW at low voltage, a simple prior declaration is enough — the case for almost every villa. Above that threshold and up to 5 MW, a connection agreement is required; from 5 MW, an authorisation.

Since when has Law 82-21 been in force?

The implementing decree 2-25-100 is in force; the text of the law is linked on our Law 82-21 page.

What should I do if my existing solar installation is not declared?

Article 33 governs the regularization of installations already in place (exact text on our Law 82-21 page): we prepare the missing file for your regime.

Free study

This page is the theory. Your file gets filed with the free study.

Have my file checked

Free · No obligation · WhatsApp reply within 1 h, 7 days a week