Three years, one decree
Morocco passed Law 82-21 on electricity autoproduction in 2023. The law promised a straightforward deal: businesses and individuals could generate their own power, mostly from solar and wind, and sell surplus to the national grid.
Then nothing happened. The implementing decree sat in committee for three years.
On October 23, 2025, the Government Council finally adopted Decree No. 2.25.100. It was published in the official gazette this month and enters into force on June 9, 2026.
For a country that imports roughly 80% of its energy and saw electricity imports surge 26.4% through November 2025 (ONEE data), this matters.
What the decree allows
The framework creates three tracks depending on installation size:
Declaration covers small, off-grid installations. A business puts solar panels on its roof, uses the power, and that is it. Minimal paperwork.
Grid-connection approval covers medium-scale installations that connect to the distribution network.
Authorization is required for anything connected to medium- or high-voltage networks. These are the industrial-scale projects that could meaningfully shift Morocco's energy mix.
Self-producers can sell surplus electricity back to the grid, but only up to 20% of their annual production. ANRE set the buyback tariff at 21 centimes per kWh during peak hours and 18 centimes during off-peak. The network usage fee for medium-voltage distribution is 6.07 centimes per kWh.
Why the 20% cap is a problem
Many industry stakeholders argue the 20% surplus limit makes large projects financially unviable. If a factory installs a solar array sized for peak demand, it will overproduce during low-demand hours. Capping grid sales at 20% means that excess power gets wasted.
The government was expected to review Decree No. 2.25.01, which could raise or remove this threshold. That review has been postponed. Two other regulations remain in development: an energy storage framework and a curtailment mechanism for managing supply-demand mismatches.
Until all three pieces are in place, large-scale autoproduction will stay constrained.
Morocco's renewable energy gap
Morocco has ambitious targets. The government wants renewables to supply 52% of installed electricity capacity by 2030, a figure recently raised to 56%. That means reaching 10.5 GW from solar (4.7 GW), wind (4.3 GW), and hydropower (1.5 GW).
Current installed capacity tells a different story. Solar sits at roughly 1.6 GW. Wind is at 1.28 GW. Hydropower adds 1.1 GW. Total: about 4 GW, less than 40% of the 2030 target.
ANRE has approved annual capacity targets of 9.3 GW for wind and solar by 2029 (Enerdata, 2025). But more than two-thirds of Morocco's electricity still comes from fossil fuels, primarily coal.
Autoproduction will not close this gap alone. It can, however, distribute the burden. Every factory running its own solar array is one less megawatt ONEE (the national utility) needs to generate or import.
What this means for investors
The decree signals intent, not completion. Morocco is building the regulatory architecture for decentralized renewable energy, piece by piece. For companies already operating in Morocco, the immediate opportunity is straightforward: install solar, cut energy costs, sell a small surplus.
For energy investors and developers, the real opportunity arrives when the 20% cap is raised and storage regulations land. That timeline remains unclear.
The companies to watch are those already manufacturing solar panels and inverters in Morocco's industrial zones, particularly around Tangier and Kenitra, where automotive and aerospace manufacturers face rising energy costs and have the roof space to act.
Atlas Brief, March 23, 2026