What Law 82-21 Does — and What the Decree Adds
The implementing decree for Law 82-21, published in March 2026, received less attention than it deserved. A rule change that allows any company in Morocco to generate its own electricity from renewable sources and sell the surplus back to the national grid may sound administrative. For foreign industrial investors evaluating a Moroccan production footprint, it is not.
This decree closes one of the persistent gaps in Morocco’s renewable energy framework: the absence of a clear and operational legal basis for corporate self-consumption at scale.
Law 82-21 was passed in 2022 as an amendment to Morocco’s foundational renewable energy legislation, Law 13-09 of 2010. In parallel, Law 40-19, enacted in February 2023, updated the authorization and declaration systems for renewable energy installations and introduced certificates of origin for green electricity.
These texts established the legal structure. The March 2026 implementing decree translates them into operational terms. It specifies the technical and contractual conditions under which businesses — including Moroccan subsidiaries of foreign groups — can produce renewable electricity for direct on-site consumption and inject surplus production into ONEE’s national grid.
Self-consumption was theoretically possible before this decree. In practice, the legal framework for grid injection, surplus billing, and the relationship between private producers and ONEE was unclear enough to deter serious investment. The decree resolves that ambiguity.
The Morocco Offer: A Separate Legal Framework for Large-Scale Hydrogen Projects
Distinct from corporate self-consumption, Morocco’s green hydrogen investment programme — the “Morocco Offer” — operates under its own legal architecture, built around the Investment Charter and specific public land allocation agreements.
In March 2025, a government committee approved five projects with a combined projected investment of approximately $35 billion, focused on green ammonia, green steel, and synthetic fuels. Land reservation agreements were signed in February 2026 with the selected sponsors: the ORNX consortium (Ortus/US, Acciona/Spain, Nordex/Germany), TAQA-Moeve (UAE-Spain), Nareva (Morocco), Acwa Power (Saudi Arabia), and UEG-China Three Gorges (China).
The Investment Charter (Loi 03-22) provides the baseline: equal treatment of domestic and foreign investors, contractual fiscal stability, and freedom to transfer capital and profits. Article 25 of the Charter commits Morocco to reforming the energy sector and promoting renewable energy specifically. MASEN — the Moroccan Agency for Sustainable Energy — manages project selection, public land allocation, and the technical authorizations for large-scale installations.
A Word of Caution: What the Legal Framework Does Not Yet Provide
Any legal adviser working on energy investments in Morocco should be clear about this: there is no Moroccan law specifically governing the green hydrogen value chain from end to end.
Production, storage, transport, pipeline access rights, export pricing mechanisms, origin certification, and safety standards are not yet covered by dedicated legislation. The legal architecture currently applied — renewable energy authorizations, Investment Charter protections, environmental impact assessment obligations, PPP frameworks — works, but it is borrowed from adjacent regimes not designed with hydrogen in mind.
Investors committing to long-term projects of 20 or 30 years should structure their agreements accordingly. Stabilization clauses and express reference to international arbitration under the ICSID Convention, to which Morocco is a party, are not optional features. They are the contractual response to a regulatory environment that is still being built.
Legal Due Diligence Points That Standard Analysis Misses
On land. Allocation under the Morocco Offer requires specific administrative authorizations. In Morocco’s southern regions, the legal status of public land involves considerations that go beyond a standard title verification.
On permits. Renewable energy installations above defined capacity thresholds require declarations or authorizations under the Law 13-09 framework as amended. The March 2026 decree does not remove these permit requirements.
On environmental obligations. Large-scale energy projects require environmental impact assessments covering air quality, water consumption, land use, and landscape integration. Non-compliance can result in construction stops and criminal liability for project directors.
On power purchase agreements. Where electricity is sold to ONEE or to an industrial offtaker under a PPA, pricing mechanisms, currency denomination, indexation formulas, curtailment rights, force majeure definitions, and the dispute resolution clause all carry long-term financial consequences. ONEE’s standard contract terms were not designed with the economics of large-scale renewable projects in mind and should be negotiated, not accepted as given.
On change of law. Moroccan energy regulation has evolved substantially over the past ten years. Any investor taking a 20-year horizon should anticipate further evolution — and structure their investment agreements to include protections against retroactive changes.
About Lafrouji Avocats
Lafrouji Avocats advises foreign companies on the legal structuring of energy investments in Morocco — from the initial authorization procedures and Investment Charter protections to the negotiation of development agreements, PPAs, and EPC contracts.
Reda Lafrouji regularly discusses Morocco’s evolving energy regulatory framework at international forums, including The Net-Zero Circle, where he contributes legal analysis to investors and developers engaged in the energy transition across North Africa.


