Guide · Law 82-21
Law 82-21 explained simply
Since 9 June 2026, 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 (Bulletin Officiel of 9 March 2026, in force since 9 June 2026) 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 provides "within eighteen (18) months from the date of entry into force of this law"; the starting point of that period is to be confirmed with the energy authorities: file without waiting, 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 grid operator before starting — ONEE in most regions, or the local utility where there is one (Lydec in Casablanca, Redal in Rabat, Amendis in Tangier). 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 provides "within eighteen (18) months from the date of entry into force of this law" to bring them into line: the starting point of that period is to be confirmed with the energy authorities — file the missing paperwork without waiting: declaration, connection agreement or authorisation, depending on the regime that applies to you above. Regularised within the period, an existing installation joins the legal framework just like a new one. Once the period closes, it stays in an irregular situation under Law 82-21, with the penalties that brings. There is nothing to gain by waiting, and the process can begin today.