Solar Energy in Morocco: How It Works, Key Projects and What It Means for Your Home
Solar energy turns sunlight into electricity or heat. Morocco gets far more sun than Europe, so a rooftop system here can cut your electricity bill substantially, and since June 2026 self-generation has a complete legal framework.
Contents
What is solar energy?
Solar energy is the energy carried by sunlight. It is used in two main ways: to make electricity, with photovoltaic (PV) panels or large concentrated solar plants, and to make heat, mainly with solar water heaters. It is renewable and emits no CO2 while operating.
Solar energy in Morocco is especially attractive. According to the European Commission's PVGIS data, a PV system in Marrakech or Agadir produces about 50 to 60% more electricity than the same system in Paris. In short:
- Resource: about 5.4 to 6 kWh of sunlight per m² per day in the main cities.
- Output: 1 kWp of well-oriented panels produces about 1,650 to 1,900 kWh a year depending on the city.
- Legal framework: Law 82-21 lets households and businesses generate their own electricity.
How solar power works for Moroccan homes
Solar panels convert light into direct current (DC). A typical home system includes:
- Solar panels, which produce DC power during daylight. Our guide to solar panel types explains TOPCon, PERC and bifacial modules.
- An inverter, which converts DC into 220/230 V AC for your appliances.
- Protection devices: breakers, surge protection and earthing.
- Optional lithium batteries, to store daytime surplus for the evening or for outages.
- The grid connection: the house uses solar power first and draws the rest from ONEE or the local distributor.
The key rule: solar produces during the day. The more consumption you shift into sunny hours (air conditioning, pool pump, washing), the better the return.
The three types of solar energy
| Type | How it works | Typical use in Morocco |
|---|---|---|
| Photovoltaic (PV) | Cells convert light directly into electricity | Homes, businesses, farm water pumping, utility plants |
| Solar thermal | Collectors heat water | Domestic solar water heaters, hotels (see our solar water heater guide) |
| Concentrated solar power (CSP) | Mirrors concentrate sunlight to make steam and drive a turbine | Large plants such as Noor Ouarzazate I, II and III |
For a home, the choice is usually between three PV setups: grid-tied (cheapest, but switches off during a power cut), hybrid (with batteries for backup) and off-grid (batteries, no grid, for remote properties and farms).
Why Morocco is one of the best places for solar
These PVGIS estimates assume south-facing panels at the optimum tilt and 14% system losses:
| City | Daily irradiation (kWh/m²) | Annual output per kWp (kWh) | Monthly average (kWh) |
|---|---|---|---|
| Ouarzazate | ≈ 6.0 | ≈ 1,880 | ≈ 157 |
| Agadir | ≈ 5.6 | ≈ 1,810 | ≈ 151 |
| Marrakech | ≈ 5.7 | ≈ 1,755 | ≈ 146 |
| Casablanca | ≈ 5.4 | ≈ 1,720 | ≈ 143 |
| Paris (reference) | ≈ 3.3 | ≈ 1,150 | ≈ 96 |
You can run a free simulation for your own address with the PVGIS tool.
The Noor Ouarzazate solar plant and Morocco's strategy
Morocco still imports the vast majority of its energy, around 90% by recent estimates. To reduce that dependence, it launched a national energy strategy in 2009 and created Masen in 2010, today the Moroccan Agency for Sustainable Energy. Its flagship is the Noor Ouarzazate solar plant. These figures come from Masen's project pages:
| Plant | Technology | Capacity | Commissioned | Price per kWh (Masen) |
|---|---|---|---|---|
| Noor Ouarzazate I | Parabolic trough CSP, ≈ 3 h storage | 160 MW | 2016 | MAD 1.62 |
| Noor Ouarzazate II | Parabolic trough CSP, > 7 h storage | 200 MW | 2018 | MAD 1.36 |
| Noor Ouarzazate III | CSP tower, > 7 h storage | 150 MW | 2018 | MAD 1.42 |
| Noor Ouarzazate IV | PV with trackers | 72 MW | 2018 | MAD 0.46 |
That is about 580 MW in total. The last column tells the real story: PV power from Noor IV costs roughly a third of CSP power. That fall in PV costs is what makes rooftop solar pay off today.
Other projects include Noor Laâyoune I (85 MW) and Noor Boujdour I (20 MW), both PV plants commissioned in 2018. Noor Midelt I, redesigned as PV with battery storage (about 630 MWp and 1,300 MWh), signed its construction contract in September 2026. Noor Midelt II and III (400 MWp each, with batteries) were awarded in August 2025.
According to the 2027 draft finance law, renewables reached 46.7% of installed capacity at the end of July 2026, against an official target of 52% by 2030. That is a share of capacity, not of the electricity actually consumed.
Law 82-21: producing your own electricity
Law 82-21 on self-generation (enacted February 2023) became fully applicable when its implementing Decree 2-25-100 took effect on 9 June 2026. The main rules:
- Below 11 kW (most homes): simple declaration.
- 11 kW to 5 MW (low or medium voltage): grid connection agreement.
- Above 5 MW: authorisation from the Ministry of Energy Transition.
- Surplus sales: capped at 20% of annual production. ANRE has set a buy-back tariff for medium and high voltage only; the low-voltage tariff for homes was still pending in autumn 2026.
For a house, the business case rests on self-consumption, not on selling power back.
Solar power for homes, businesses and farms
- Homes: Moroccan residential tariffs rise by consumption bracket, so villas with air conditioning or pools save the most. A solar water heater is often the cheapest first step.
- Businesses: shops, hotels, clinics and factories use most of their power during the day, which makes them the most profitable profile.
- Farms: solar pumping replaces diesel for irrigation. Under water Law 36-15, every well or borehole needs authorisation from the river basin agency, whatever its depth. See our solar water pumping guide.
Pros and cons
| Pros | Cons |
|---|---|
| Abundant, free resource | No output at night, less under cloud |
| Lower bills for 25+ years | Upfront investment |
| Hedge against tariff increases | Surplus sales capped; no low-voltage tariff yet |
| Low maintenance, silent | Dust means regular cleaning |
| Works off-grid | Heat reduces panel efficiency |
What does solar cost in Morocco?
Cost depends on system size (kWp), system type (grid-tied is cheapest; batteries add significantly), equipment brands, mounting (flat roof terrace, tiles, carport) and site complexity. See our solar panel price guide for Morocco for current market ranges.
Choosing a solar company in Morocco
Ask any company for:
- A sizing study based on your last 12 months of bills.
- A written quote listing exact panel and inverter makes and models, total kWp and mounting type.
- Manufacturer datasheets and warranties.
- A yield estimate in kWh per year, consistent with PVGIS for your city.
- Clear handling of the Law 82-21 declaration or connection request.
- After-sales monitoring and maintenance.
Be wary of "zero bill" promises without a study, unrealistic panel ratings at low prices, quotes with no brand names, and full payment before delivery.
Starting your solar project in six steps
- Collect 12 months of electricity bills from ONEE or your local distributor.
- Set your goal: lower bills, backup during outages, full independence or water pumping.
- Check your roof: orientation, shade from walls, satellite dishes or neighbouring buildings, and space. Allow about 4.5 m² of panels per kWp, a little more on a flat roof terrace where rows must be spaced.
- Get a tailored study and quote based on your actual consumption.
- Install and complete the Law 82-21 formalities: a declaration for most homes.
- Monitor output and clean the panels regularly, since dust is the main cause of lost production in Morocco.
Solar in Agadir, Marrakech and Casablanca
- Agadir has the best yield of the three (about 1,810 kWh per kWp a year) and very steady output all year. Salt air calls for panels certified for salt mist (IEC 61701) and corrosion-resistant mounting. More on solar in Agadir.
- Marrakech has strong sun but hot summers: PVGIS estimates heat losses at about 11% a year, against 7% in Agadir. Choose panels with a low temperature coefficient (N-type TOPCon or HJT). More on solar in Marrakech.
- Casablanca still yields about 1,720 kWh per kWp, with a wider gap between winter (about 120 kWh per kWp in November) and summer (about 164 kWh in July and August). Shading from nearby buildings and limited roof space are the usual constraints. More on solar in Casablanca.
Chams Atlas supports you from the initial study to installation, with a single point of contact for your whole project: request your free, personalised quote.
Frequently asked questions
Is solar worth it in Morocco?
For most homes and businesses with significant daytime consumption, yes. One kilowatt-peak of panels produces roughly 1,650 to 1,900 kWh a year depending on the city, about 50 to 60% more than the same system in Paris. Returns are best when you use most of the power yourself during the day.
Can foreigners install solar panels on a property in Morocco?
Law 82-21 allows any natural or legal person to generate electricity for their own use, provided they own the installation or have the right to use it. If you rent, you will need the owner's agreement; in a shared building, the co-owners' agreement.
How big is the Noor Ouarzazate solar plant?
The Noor Ouarzazate complex has four plants totalling about 580 MW: three concentrated solar power plants (160, 200 and 150 MW) and one 72 MW photovoltaic plant, according to Masen. It is the largest solar complex in operation in Morocco.
Can I sell surplus solar power to the grid in Morocco?
Law 82-21 caps surplus sales at 20% of annual production. ANRE has set a buy-back tariff for medium and high voltage for March 2026 to February 2027, but the low-voltage tariff that applies to homes had not been published by autumn 2026. Size your system for self-consumption.
Do I need a permit for home solar in Morocco?
Under Law 82-21 and Decree 2-25-100, in force since 9 June 2026, small installations below 11 kW, which covers most homes, fall under a simple declaration regime. Larger systems need a grid connection agreement, and plants above 5 MW need an authorisation.
What share of Morocco's electricity comes from renewables?
According to the 2027 draft finance law, renewables made up 46.7% of installed power capacity at the end of July 2026. The official target is 52% of installed capacity by 2030.