Spain has begun requiring new large data centres to back 80% of their hourly electricity consumption with renewable energy generated in that same hour, under Royal Decree 1032/2026, which was published in the Official State Gazette (BOE) on Saturday and took effect on Sunday.
The rule targets a problem that annual renewable contracts do not solve: a data centre's servers can keep drawing power at 3 a.m., long after its solar panels have stopped producing. Under the new decree, a facility that consumes 10 megawatt-hours between 3 a.m. and 4 a.m. must be able to show renewable backing equivalent to 8 megawatt-hours during that same hour. A single purchase that covers a year's total consumption on paper can still leave gaps overnight, which is why the decree allows operators to use battery storage, alongside power purchase contracts and self-generation, to fill those hours.

The regulation arrives as a large share of Spain's grid capacity is already earmarked for the sector. Presenting the measure on Friday, Deputy Prime Minister Sara Aagesen said 15 gigawatts of grid access permits had already been granted to data centres, with a further 20 gigawatts in additional requests still pending. According to the government, the 15 gigawatts already granted amount to nearly 40% of the peak electricity demand Spain has ever recorded. A permit only reserves access capacity; actual power consumption begins once a project connects to the grid and starts operating.
What each facility must prove
The decree applies to the general regime based on a facility's grid access power, with the threshold set at 10 megawatts or above. Access power is also counted jointly for data centres that share the same site and the same owner, meaning two adjoining buildings run by one operator can fall under the rule through their combined capacity.
Developers must explain to the grid operator how they plan to sustain their expected activity and document their generation plans and, where relevant, their storage plans. Once connected, each project must identify the specific assets linked to it, and the readings from those assets will let the system operator calculate any deviations using measured data rather than estimates. The decree also sets water efficiency requirements, addressing the water used for cooling at data centre sites.
What happens to permits already granted
For many projects, the connection date will be the one that matters most. Developers that already hold access permits but have not yet connected to the grid will have six months, with exceptions set out in the decree, to prove they meet the new requirements. Applications that are still pending a decision will be subject to a separate regime. The decree also sets specific conditions for certain European projects and includes adaptation periods for some cases.
There are also consequences if a facility's readings deviate from the required backing after it begins operating. The grid operator will calculate the difference between actual renewable backing and the amount required, and the regulation provides for compensatory payments in the cases it covers. Decisions about charging a battery or choosing which generation source backs the servers through a windless night will now shape outcomes measured well after a facility opens.
For developers, the practical question starts at the planning stage. A project can contract external generation, install its own equipment, or combine both with storage, but it will have to show how those pieces fit together across the day and later prove the result using measurements from the facility and its linked assets. A forecast of abundant production in August still leaves open what happens on a December night with little wind or sun.
What happens next
Developers holding unconnected grid access permits have six months, subject to exceptions in the decree, to demonstrate compliance with the new hourly renewable backing requirements.
Test yourself
What share of hourly consumption must new large data centres back with renewable energy under the decree?
What is the minimum grid access power threshold for a facility to fall under the new rule?
According to the government, how much of Spain's peak electricity demand do the 15 gigawatts of granted data centre permits represent?
Have your say
Should governments require data centres to match renewable energy on an hourly basis rather than annually?
Where it happened
Madrid, Spain
