Technology

Spain Forces Data Centres to Match 80% of Power Use With Renewable Energy

Spain’s data centre framework sets an 80% hourly renewable matching standard for facilities from 10 MW, with transition rules. Explore the economic effects.

By The Strategic Newb Editorial Team
Event: · Published:

Editorial illustration of a Spanish data centre with solar generation and battery storage.
AI-generated editorial illustration; not a photograph of an actual event or facility.
The Strategic Newb

Spain Forces Data Centres to Match 80% of Power Use With Renewable Energy

Spain’s new energy framework for data centres entered into force on 22 November 2026. Its main obligations cover facilities with at least 10 MW of access capacity, including relevant aggregated facilities with the same owner at the same site. The standard requirement is to match at least 80% of electricity use with renewable generation each hour, subject to transitional and special regimes. The policy links AI and cloud infrastructure to clean-power investment.

Spain's new data centre rules could become a test case for the rest of Europe. The country wants to attract artificial intelligence infrastructure without forcing households and traditional industries to pay for the extra electricity demand.

Royal Decree 1032/2026 was published in Spain's official gazette on 21 November and entered into force one day later. It establishes energy, water-efficiency, resilience and digital-sovereignty requirements for data centres.

The standard rule is to match 80% of electricity consumption with renewable power, subject to the decree’s exceptions and transition arrangements. This is not an annual accounting exercise. The renewable electricity must be generated during the same hour in which the data centre consumes it.

That difference matters. A company can no longer claim that daytime solar production fully offsets electricity consumed during every night of the year. Operators will need a combination of renewable generation, energy storage, flexible demand and long-term electricity contracts.

What Spain's new data centre law requires

Within its scope of at least 10 MW of access capacity, the decree applies to new grid-connection requests and to many projects that have received permits but are not yet connected. Pending projects must demonstrate compliance within the applicable transition period or risk losing access rights.

The main requirements include:

The decree also provides transitional and special regimes. An eligible facility using the optional SRAP pathway may apply alternative requirements for five years: 60% renewable matching in P1 periods through 2028, followed by 70% in P1 and 60% in P2. Eligible facilities must enter operation before 31 December 2030. Certain European strategic projects have separate provisions. These alternatives should not be confused with an immediate, universal 80% obligation.

If renewables exceed 90% of the national power mix in year n−2, the decree replaces the hourly matching condition with an annual cap on grid-consumption hours under its calculation rules. This is a conditional substitution, not an unconditional permanent abolition of the requirement.

Why annual renewable certificates are not enough

Data centres operate continuously. Solar and wind generation change with the time of day and the weather. Annual renewable certificates can show that a company purchased an amount of clean electricity equal to its yearly consumption, but they do not prove that clean power was available during every operating hour.

Spain is moving closer to a 24/7 clean-energy model. A data centre that consumes electricity at night may need battery storage, wind generation, hydroelectric power or another source that can cover those hours. It may also sign long-term contracts with several renewable projects rather than relying on one solar installation.

This approach makes the energy claim more credible, but it also makes compliance more expensive and technically difficult.

AI infrastructure is becoming energy infrastructure

The rapid expansion of generative AI has changed the economics of data centres. Training and operating large AI systems requires substantial computing capacity. That capacity creates large, stable electricity loads in locations where grid connections may already be scarce.

Spain's official legal text refers to more than 15 gigawatts of data centre access and connection permits. If all that capacity connected without new renewable generation, the government argues that additional demand could require more gas-fired electricity and raise prices for other users.

The new framework therefore places more of the infrastructure cost on data centre developers. To expand, operators may need to finance new renewable projects, batteries, grid equipment and energy-management systems.

This creates a new economic principle: the AI company or cloud provider that creates the electricity demand should help fund the extra clean supply needed to serve it.

Who could benefit from the rules?

Renewable-energy developers are among the clearest potential winners. Long-term power-purchase agreements from data centres can provide stable revenue and make it easier to finance solar, wind and storage projects.

Battery companies may also benefit. Hourly matching increases the value of storing excess renewable electricity and delivering it later. Providers of energy-management software, demand forecasting and power optimisation could gain new customers.

Locations with strong electricity grids and abundant renewable resources may attract more investment than congested regions. Existing facilities that already use efficient cooling and advanced energy systems may gain a competitive advantage over less efficient rivals.

Spanish households and industrial companies could benefit if the rules prevent data centre demand from increasing gas generation and wholesale electricity prices. However, that benefit depends on how effectively the decree is implemented.

Who could lose?

The rules raise the entry barrier for data centre developers. Projects that were designed around ordinary grid electricity may need expensive changes. Some sites may no longer be financially viable.

Two industry executives told Reuters that the requirements could make certain Spanish projects unprofitable and encourage developers to consider France or Portugal. That does not prove that investment will leave Spain, but it shows the competitive risk.

Cloud providers and AI companies may face higher infrastructure costs. Part of that cost could eventually reach business customers through higher prices for computing and cloud services.

Spain must therefore balance two objectives. It wants to protect its electricity system, but it also wants to participate in Europe's race for AI infrastructure and digital sovereignty.

The government's €5 billion warning

Spain's Ministry for the Ecological Transition estimates that the absence of the decree could add €5 billion to electricity bills. The ministry also presented a scenario in which industrial consumers would pay 25% more for electricity.

These figures are government estimates, not confirmed outcomes. They depend on future data centre construction, gas prices, grid investment and the development of renewable capacity.

The estimates still reveal the scale of the policy debate. Governments increasingly see data centres not simply as commercial buildings, but as major industrial energy users with effects across the wider economy.

Could Spain's model spread across Europe?

European countries want more domestic cloud and AI capacity. At the same time, they face grid congestion, higher electricity demand and public concern about water use and energy prices.

Spain's approach offers one possible answer: allow growth, but connect grid access to measurable energy, water and sovereignty conditions.

Other governments may watch three outcomes closely:

If the policy works, hourly renewable matching could become a wider European standard. If projects move elsewhere without reducing regional electricity demand, the law may instead demonstrate the limits of national regulation in a competitive market.

What happens next?

Developers with projects in progress must assess whether their energy contracts, storage plans and efficiency designs meet the decree. Some projects have only a few months to provide evidence of compliance.

Renewable developers are likely to pursue long-term contracts with data centre operators. Technology companies will need more precise systems for tracking electricity generation and consumption hour by hour.

The wider question is no longer whether AI will require more energy. It is who will build that energy supply, who will pay for it and who will carry the risk when the grid cannot keep up.

Spain’s framework links data centre growth to clean electricity, with detailed scope limits, alternatives and transition periods.

Frequently asked questions

What percentage of renewable electricity must Spanish data centres use?

The standard rule for facilities within the at-least-10-MW access-capacity scope is 80% hourly renewable matching. Transitional alternatives and special regimes apply.

When did Spain's data centre energy rules take effect?

Royal Decree 1032/2026 was published on 21 November 2026 and entered into force on 22 November 2026.

Do the rules apply only to new data centres?

No. They cover new applications and can also affect projects that already have grid permits but have not yet connected.

Why does hourly matching matter?

Hourly matching shows whether renewable electricity was available when the data centre used power. Annual certificates can hide periods in which fossil-fuel generation supplied the electricity.

Will the rules stop data centres from being built in Spain?

Not necessarily. They may increase project costs and delay some developments, while favouring sites with better access to renewable generation, storage and grid capacity.

Sources

This article provides general information and does not constitute investment, legal or energy-market advice.

More news →
Perspective, in your inbox

Stay ahead of the bigger picture.

Join the list for our forthcoming editorial newsletter.

By joining, you agree to receive our newsletter. See our privacy policy.