Spain has moved from being a country known for imported fossil fuels to one of Europe’s most important renewable electricity markets. Large wind farms, expanding solar capacity and a strong hydroelectric system now produce most of its electricity. However, the wider Spanish economy still depends heavily on imported oil and natural gas, especially for transport, industry and backup power.
This creates the central tension in Spain’s energy system. The country can generate increasingly large amounts of low-carbon electricity, but it must also strengthen its grid, expand storage and electrify parts of the economy that still burn fossil fuels. Nuclear closures, limited electricity links with France and the different needs of the Spanish islands add further complexity. Spain’s energy future will therefore depend less on building generation capacity alone and more on connecting, storing and using that power effectively.
Spain’s Electricity Transition Is Moving Faster Than Its Wider Energy Economy
Electricity is now the clearest success story in Spain’s energy transition. In 2025, renewable sources produced more than half of the country’s electricity for the second year in a row. Wind remained the largest individual source in the grid-connected generation mix, followed by nuclear power, solar photovoltaic energy, natural gas and hydropower.
The picture changes when transport, industrial heat, aviation, shipping and other forms of energy use are included. Petroleum products remain central to road transport and freight, while natural gas is still important for factories, heating, electricity generation and some commercial activities. Spain also has very limited domestic production of oil, gas and coal, which means it must import most of the fossil energy it consumes.
Spain is therefore not simply replacing one fuel with another. It is creating a power system in which domestic sunlight, wind and water can reduce the country’s exposure to imported fuels. The difficult step is extending that progress beyond electricity.
Electric vehicles, heat pumps, electric industrial equipment and renewable hydrogen could move more economic activity onto the power grid. However, that would also increase electricity demand. Spain must expand renewable generation while making sure that transmission lines, storage facilities and flexible power plants can support a larger and more complex system.
Wind and Solar Have Changed How Spain Produces Electricity
Spain’s renewable energy advantage begins with geography. Large areas of the country receive strong sunlight, particularly in Andalusia, Extremadura, Castilla-La Mancha and other central and southern regions. The northern coast, the Ebro Valley, Galicia and the broad interior plateau also offer valuable wind resources.
Wind power has been a major part of Spanish electricity production for many years. Spain developed a domestic wind industry and built projects across regions such as Castilla y León, Aragón, Galicia, Navarra and Castilla-La Mancha. Wind remains especially valuable because it can produce electricity during hours when solar facilities are inactive.
Solar photovoltaic power is now growing more quickly. By the end of 2025, Spain had almost 50 gigawatts of photovoltaic capacity when self-consumption systems were included. Solar had become the largest technology in the country’s installed electricity capacity, ahead of wind and natural gas combined-cycle plants.
The growth includes both large solar parks and smaller systems on homes, factories, farms and commercial buildings. Rooftop solar allows consumers to produce some of their own electricity and can reduce daytime demand from the national grid. Large projects can provide electricity at a much greater scale, particularly in areas with open land and strong solar radiation.
Solar growth also creates operational challenges. Production rises sharply during sunny hours and falls in the evening, when household demand may remain high. During periods of low demand and strong renewable output, the power system may have more electricity than it can use, store or export. This can lead to lower wholesale prices and restrictions on some renewable production.
Spain’s next stage of renewable development must therefore include batteries, pumped-storage hydropower, stronger transmission lines and more demand that can respond to periods of abundant electricity.
The Grid Has Become the Central Spanish Energy Challenge
Spain no longer faces only the question of how to build more renewable energy. It must determine how to operate a system with a large and growing share of weather-dependent generation.
At the end of 2025, Spain had more than 150 gigawatts of electricity capacity when self-consumption and storage were included. Renewable sources represented well over half of this capacity. The transmission network covered more than 46,000 kilometres, but new generation is often located far from the largest cities and industrial centres.
Solar development is especially strong in the centre, south and west, while major areas of demand include Madrid, Barcelona, Valencia, Bilbao and the Mediterranean industrial corridor. New transmission infrastructure is needed to move electricity between these regions and to connect new factories, data centres, hydrogen projects and transport systems.
The nationwide electricity failure of April 28, 2025, placed grid operation at the centre of Spain’s energy debate. The official investigation identified voltage instability and a series of oscillations and generation disconnections rather than a cyberattack. The event showed that a modern energy transition requires more than renewable capacity. The system also needs voltage control, reserve capacity, stable frequency, strong operating rules and generation that can respond quickly when conditions change.
Storage will play a larger role. Spain already has pumped-storage hydropower, in which electricity is used to move water uphill before releasing it later through turbines. Battery development is also increasing, although storage capacity remains small compared with the scale of planned solar and wind construction.
A stronger grid will allow Spain to use more of the renewable electricity it produces. Without that investment, the country risks building power plants faster than it can connect or operate them.
Limited Connections With France Keep Spain on Europe’s Energy Edge
Spain and Portugal operate within the Iberian electricity market, but the Iberian Peninsula has relatively limited electricity connections with the rest of Europe. The Pyrenees create a physical barrier between Spain and France, and cross-border capacity remains small compared with Spain’s total generation fleet.
This matters when Spain produces more renewable electricity than the domestic market needs. Better connections would allow it to sell more power into France and other European markets. They would also allow Spain to import additional electricity during shortages or periods of low wind, weak hydropower output and high demand.
The Bay of Biscay interconnection is designed to increase exchange capacity between Spain and France. It is an important part of Spain’s attempt to reduce the energy isolation of the Iberian Peninsula. Greater interconnection could support renewable investment, improve security and help electricity prices move closer to those in other European markets.
Portugal is already closely connected to Spain, and the two countries share many of the same electricity-market conditions. However, stronger French links are necessary before the Iberian Peninsula can operate as a fully integrated part of the wider European system.
Natural Gas Gives Spain Flexibility and Strategic Reach
Spain produces little natural gas, but it has built one of Europe’s most developed gas-import systems. Its location between the Atlantic Ocean, the Mediterranean Sea and North Africa has allowed the country to combine pipeline imports with a large network of liquefied natural gas terminals.
Spain has LNG facilities at Barcelona, Cartagena, Huelva, Bilbao, Sagunto, Mugardos and El Musel. Together, these terminals give Spain more LNG infrastructure, storage and vaporisation capacity than any other European country. Gas can arrive by ship from many different suppliers, reducing dependence on a single route.
Pipeline connections with Algeria also remain strategically important. Algeria has traditionally been one of Spain’s largest gas suppliers, while LNG cargoes provide access to producers including the United States and other global exporters. In 2025, Spain received gas from 16 different origins.
Natural gas has several roles inside Spain. Industry uses it to produce heat, chemicals, ceramics, glass, fertilisers and other goods. Homes and commercial buildings use gas for heating and hot water. Combined-cycle gas plants also generate electricity.
The power-sector role of gas changes from year to year. During wet and windy periods, renewable generation reduces the need for gas plants. During weak hydroelectric conditions, low renewable production or periods of system stress, combined-cycle facilities can increase their output quickly.
This makes natural gas both a fossil fuel and a flexibility resource. Spain’s climate plans expect gas use to decline over time, but gas infrastructure will remain important while storage, grid connections and electrified industrial systems are still developing.
Spain also supplies gas to neighbouring markets through pipeline exports and LNG services. This has strengthened its position in European energy security, although limited pipeline capacity across the Pyrenees prevents Spain from sending all of its available LNG-based gas deeper into Europe.
Oil Still Powers Transport and Supports a Major Refining Industry
Spain has almost no meaningful domestic crude oil production. Its refineries therefore depend on imported crude from a wide range of countries. Crude oil imports fell in 2025 compared with 2024, but oil remained one of the country’s most important energy imports.
Most oil is not used to generate electricity. It is converted into diesel, gasoline, jet fuel, marine fuel, liquefied petroleum gas and petrochemical feedstocks. Road transport remains the largest source of demand, supported by private cars, commercial vehicles and Spain’s important freight and logistics sector.
Tourism also affects oil consumption. Spain is one of the world’s leading tourist destinations, creating significant demand from aviation, rental vehicles, coaches and cruise ships. Major airports in Madrid, Barcelona, Málaga, Palma de Mallorca and the Canary Islands connect the country to European and global travel markets.
Spain has a large and modern refining system, with facilities located near major ports and industrial centres. Refineries process imported crude for domestic use and for exports of finished products. This means Spain can be dependent on imported oil while still holding an important position in Europe’s downstream petroleum market.
Reducing oil consumption will require more than adding renewable electricity. Spain must expand electric vehicle use, charging infrastructure, rail freight and public transport. Aviation and shipping are more difficult to electrify, so biofuels, synthetic fuels and renewable hydrogen derivatives may play a role.
The transition will also affect refineries. Some facilities are investing in renewable fuels, hydrogen and lower-carbon industrial processes. Their future may depend on whether they can shift from traditional petroleum products toward fuels and materials that remain useful in a lower-carbon economy.
Coal Has Almost Disappeared From Spanish Electricity
Coal was once a major part of Spain’s electricity system and supported mining communities in Asturias, León, Aragón and other regions. Its decline has been rapid.
Domestic coal mining fell after years of restructuring and the reduction of public support. At the same time, many coal-fired power stations closed because of environmental rules, carbon prices, aging equipment and competition from renewable energy and natural gas.
By the end of 2025, coal represented only about 1% of Spain’s installed electricity capacity. Its share of actual generation was also very small. Coal now has little influence on Spain’s national electricity mix compared with wind, solar, nuclear, hydro and gas.
The social effects have been more important than the remaining energy contribution. Mine and power-plant closures can remove major sources of employment, local taxes and economic activity from communities that have depended on them for decades.
Spain has used just-transition agreements to support affected areas through environmental restoration, worker assistance and new investment. Renewable energy, industrial redevelopment and energy-storage projects may replace some lost activity, but creating stable long-term employment remains difficult.
Coal may still be used in limited industrial applications, but it is no longer one of the foundations of Spain’s electricity system.
Nuclear Power Provides Stability as Spain Plans Its Closure
Spain has five operating nuclear power stations containing seven reactors. Almaraz and Ascó each have two units, while Cofrentes, Vandellós II and Trillo each have one. Together, these plants generated about 19% of Spanish electricity in 2025.
Nuclear power plays a different role from wind and solar. Reactors normally produce electricity for long periods at a steady level, with no direct carbon dioxide emissions from generation. This provides a large block of low-carbon electricity that is not dependent on daily weather conditions.
Spain’s current national planning is based on closing the existing reactors in stages between 2027 and 2035. This timetable makes nuclear energy one of the most difficult questions in the Spanish transition.
Closing nuclear plants will reduce the amount of stable low-carbon generation in the system. Spain will need enough renewable capacity, storage, grid support, flexible demand and backup generation to replace their output without increasing fossil fuel use or weakening reliability.
The decision also has regional consequences. Nuclear plants support skilled employment, contractors and municipal revenue in their surrounding areas. Their closure will require economic planning as well as technical decommissioning.
Radioactive waste management is another long-term issue. Spain must manage spent nuclear fuel, dismantle retired facilities and develop safe storage solutions. These responsibilities will continue for many years after the final reactor stops producing electricity.
The closure timetable has faced political and industry debate, particularly over electricity security, plant taxation and the cost of replacement capacity. Nuclear power is therefore likely to remain part of Spain’s energy debate even as its official share declines.
Water Connects Energy, Agriculture and Climate Risk
Hydropower is one of Spain’s oldest major renewable resources. Reservoirs and dams can provide electricity, system flexibility and energy storage. They also support water supply, irrigation and flood management.
This creates competition between different uses. Spain has a dry and highly variable climate, and water availability differs sharply between regions and years. Drought can reduce hydroelectric generation while also increasing pressure on farms, cities and ecosystems.
In wet years, hydropower can produce a large share of electricity and reduce gas demand. In dry years, output may fall considerably. This makes hydro valuable but unreliable as a fixed annual source.
Pumped-storage projects have a different role. They can store electricity even when natural water inflows are low, provided that water can be moved between reservoirs. As solar production grows, pumped storage can absorb electricity during the day and return it to the grid after sunset.
Climate change may increase the importance of careful water management. Higher temperatures, changing rainfall and longer droughts could make it harder to balance electricity production with agricultural and urban needs. Spain’s energy planning must therefore treat water as both an energy resource and a national constraint.
The Islands Have Their Own Energy Transition
Mainland Spain is connected to Portugal, France and a large internal transmission system. The Balearic and Canary Islands face different conditions.
The Balearic Islands have an electricity connection with mainland Spain, but they still depend on local power stations and imported fuels. A second mainland link is planned to improve security and allow more renewable electricity to reach the islands.
The Canary Islands are much farther from the peninsula and operate through several smaller island systems. They have strong wind and solar resources, but small isolated grids are harder to balance. A sudden change in generation can have a greater effect than it would on the mainland network.
Oil products and gas-based generation remain important for island electricity, transport, aviation and tourism. Expanding renewable energy will require batteries, pumped storage where geography allows, stronger links between islands and better demand management.
The islands show why Spain cannot follow one national energy model. The mainland, Balearics, Canaries, industrial north and renewable-rich interior each require different infrastructure.
Spain’s 2030 Targets Depend on Electrification and Storage
Spain’s updated National Energy and Climate Plan aims for renewable sources to produce 81% of electricity by 2030. It also targets a 48% renewable share in final energy use and a reduction in external energy dependence to 50%.
Reaching the electricity target will require more solar and wind capacity, but construction alone will not be enough. Spain must expand transmission, speed up grid connections, add storage and create new demand during hours when renewable electricity is abundant.
Industry could provide some of this demand. Renewable hydrogen projects are being developed for refineries, chemicals, fertilisers, steel and heavy transport. Spain’s renewable resources could allow it to produce hydrogen with domestic electricity rather than imported natural gas.
Data centres, electric vehicles, heat pumps and industrial electrification could also increase power consumption. From an energy-system perspective, growth in electricity demand is not necessarily a problem. It can help absorb renewable generation if new demand is flexible and located where the grid can support it.
The larger risk is poor coordination. Renewable projects, factories, hydrogen plants, storage systems and transmission lines have different development schedules. Spain may have abundant generating capacity in one region while a slow grid connection delays industrial investment in another.
Spain’s Energy Future Is an Integration Test
Spain has already demonstrated that wind and solar can move from the edge of the power system to its centre. Renewable sources now generate most of the country’s electricity, coal has nearly disappeared and domestic clean-energy resources are reducing the need for fossil power.
The next stage will be harder. Spain must replace nuclear output as reactors close, manage variable generation, expand storage, strengthen links with France and modernise the grid. It must also reduce oil use in transport and natural gas use in industry without damaging affordability or reliability.
Spain’s strongest advantage is not a large reserve of coal, oil or gas. It is the combination of sunlight, wind, industrial capacity, ports and access to European markets. Turning those assets into a secure energy system will require infrastructure to advance as quickly as renewable generation.
The central question is no longer whether Spain can produce large amounts of clean electricity. It is whether the country can store, transport and use that electricity across the whole economy.





