Morocco's energy mix and electricity
π²π¦ In 2025, Morocco generated 44.1 TWh of electricity. The largest source was coal at 62%, followed by wind (15%) and gas (11%). In total, 23% came from low-carbon sources (nuclear and renewables) and 77% from fossil fuels.
On average, each kilowatt hour produced about 602 grams of carbon dioxide (COβ), above the world average of 458 grams in 2025. That makes Morocco the 125th cleanest of 158 countries that generate at least 1 TWh a year.
Electricity demand was 47.9 TWh. Morocco imported 3.73 TWh more electricity than it exported, equal to 7.8% of its demand.
Since 2000, electricity generation has grown by 222%, from 13.7 TWh. The low-carbon share went from 5% to 23%. The biggest rise was in wind, from 0% to 15% of generation. The biggest fall was in oil and other fossil fuels, from 26% to 4%. Carbon intensity fell from 759 to 602 grams per kWh.
Live, hour-by-hour figures for Morocco are not connected yet. The dashboard shows its yearly figures, energy mix since 2000 and interconnector trade.
Energy mix in 2025
- Coal 62%
- Wind 15%
- Gas 11%
- Solar 5.8%
- Oil and other fossil fuels 3.6%
- Hydro 2.1%
- Bioenergy 0.1%
| Source | Share | Generated |
|---|---|---|
| Coal | 62% | 27.5 TWh |
| Wind | 15% | 6.75 TWh |
| Gas | 11% | 4.76 TWh |
| Solar | 5.8% | 2.56 TWh |
| Oil and other fossil fuels | 3.6% | 1.59 TWh |
| Hydro | 2.1% | 0.93 TWh |
| Bioenergy | 0.1% | 0.04 TWh |
Total energy mix in 2024
Electricity is only part of the energy Morocco uses: fuel for transport, heating and industry counts too. In 2024, Morocco used 276 TWh of energy in all (primary energy). The largest source was oil at 61%, followed by coal (27%) and wind (6.7%). Fossil fuels made up 91% and low-carbon sources (nuclear and renewables) 8.7%.
- Oil 61%
- Coal 27%
- Wind 6.7%
- Gas 3.3%
- Solar 1.9%
- Hydro 0.1%
| Source | Share of all energy |
|---|---|
| Oil | 61% |
| Coal | 27% |
| Wind | 6.7% |
| Gas | 3.3% |
| Solar | 1.9% |
| Hydro | 0.1% |
Primary energy, with nuclear and renewable electricity counted as the fuel a power station would need to make it (the "substitution method"). Here "other renewables" is the Energy Institute's "geothermal, biomass and other" power generation, and biofuels are liquid fuels such as ethanol and biodiesel. Source: Energy Institute Statistical Review of World Energy via Our World in Data (CC BY 4.0).
Energy security score
Vulnerable. Morocco ranks 127th of 158 countries and 27th of 35 in Africa. The score shows how well a country could keep electricity affordable and on if fuel supplies were disrupted.
| Measure | Score |
|---|---|
| Produces its own energy In 2024, Morocco produced energy equal to 9% of all the energy it used (100% or more scores full marks). | 9 |
| Variety of power sources How evenly generation is spread across nine sources. The largest, coal, made 62%. | 64 |
| Little reliance on imported power Net imports were 7.8% of demand; each 1% takes off 2 points. | 84 |
| Low-carbon power Nuclear and renewables made 23% of generation. | 23 |
| Low gas and oil use Gas and oil made 14% of generation; the score is 100 minus that share. | 86 |
The five measures are weighted 30%, 20%, 20%, 15% and 15%. How the score works.
Oil and gas pipelines
Global Energy Monitor lists 1,095 km of oil and gas pipelines operating in Morocco, 0 km being built and 7,006 km proposed (lengths measured along the mapped routes; a pipeline crossing borders counts in full for each country). For liquefied natural gas (LNG), shipped by sea, it lists 0 import terminals operating (3 more being built or proposed).
See them on the interactive map Β· Pipelines around the world
How it has changed
| Year | Generated | Low-carbon | Fossil | COβ g/kWh |
|---|---|---|---|---|
| 2000 | 13.7 TWh | 5% | 95% | 759 |
| 2005 | 19.3 TWh | 8% | 91% | 717 |
| 2010 | 22.9 TWh | 19% | 81% | 611 |
| 2015 | 29.9 TWh | 16% | 83% | 640 |
| 2020 | 38.8 TWh | 19% | 81% | 646 |
| 2024 | 42.4 TWh | 25% | 76% | 595 |
| 2025 | 44.1 TWh | 23% | 77% | 602 |
Questions about Morocco's energy
What is Morocco's energy mix?
In 2025, Morocco's electricity came from coal 62%, wind 15%, gas 11% and solar 5.8%. Counting all the energy it uses, including fuel for transport and heating, the mix in 2024 was oil 61%, coal 27%, wind 6.7% and gas 3.3%.
How much of Morocco's electricity is renewable?
23% of its electricity came from renewables in 2025 (wind 15%, solar 5.8% and hydro 2.1%).
What is Morocco's main source of electricity?
Coal, which made 62% of its electricity in 2025.
How clean is Morocco's electricity?
About 602 grams of COβ for each kilowatt hour in 2025, above the world average of 458 grams. It ranks 125th cleanest of 158 countries that generate at least 1 TWh a year.
Does Morocco import electricity?
Yes: in 2025 it imported 3.73 TWh more than it exported, 7.8% of its demand.
How secure is Morocco's energy supply?
Global Grid's energy security score for Morocco is 49 out of 100 (vulnerable), 127th of 158 countries. It looks at how much of its own energy it produces, how varied its power sources are, its reliance on imported power and its use of low-carbon power, gas and oil.
Other countries in Africa
- πͺπ¬ Egypt
- πΏπ¦ South Africa
- π©πΏ Algeria
- π³π¬ Nigeria
- π±πΎ Libya
- πͺπΉ Ethiopia
- π¬π Ghana
- πΉπ³ Tunisia
Sources: Ember yearly electricity data (CC BY 4.0), figures up to 2025; energy production and use by source from the Energy Institute Statistical Review via Our World in Data (CC BY 4.0), 2024; pipelines and LNG terminals from Global Energy Monitor's Global Oil Infrastructure Tracker (June 2026 release) and Global Gas Infrastructure Tracker (November 2025 release) (CC BY 4.0). Ember's latest-year figures are first estimates and may be revised. TWh: terawatt hours (one billion kWh).