Law 82-21 In force since 9 June 2026 — existing installations: regularize now →

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 3 July 2026

In force

Decree 2-25-100 (Bulletin Officiel of 9 March 2026, in force since 9 June 2026) and ANRE decision 04/26: 0.18–0.21 DH/kWh surplus buy-back, but only for the connection-agreement and authorisation regimes, at medium, high and very high voltage (MV/HV/EHV).

Not yet published

The buy-back tariff for the low-voltage (LV) declaration regime — the one that covers almost every villa — is not published yet, with a timeline mentioned around 2027, unconfirmed as of today.

Already have an installation in place? The Article 33 regularization window is open today, 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 has opened, since 9 June 2026, an 18-month window to bring them into line: that's the time you have to file the missing paperwork — declaration, connection agreement or authorisation, depending on the regime that applies to you above. Regularised within that window, an existing installation joins the legal framework just like a new one. Once the window 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.

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 has applied since 9 June 2026.

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

Article 33 opens, since 9 June 2026, an 18-month window to regularise it. After that deadline, it stays in an irregular situation under the law, with the penalties that brings.

Free study

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

Have my file checked

Free · No obligation · Reply within 24–48 h · On WhatsApp