Spain has taken a significant step to regulate the growth of data centers and their impact on the electricity system. The Council of Ministers approved the Royal Decree establishing energy sustainability, environmental sustainability, resilience, and digital sovereignty requirements for these facilities, with particular attention to large projects requiring more than 10 MW of electrical power.
The core of the new regulation lies in grid access and connection. From now on, large data centers will have to demonstrate that a substantial portion of their energy consumption comes from additional renewable generation and that there is an hourly correlation between that production and the facility's demand. The government's objective is to prevent the accelerated development of these projects from leading to increased use of gas-fired power plants during hours when renewable generation is insufficient, with the consequent impact on electricity prices.
The Third Vice-President and Minister for Ecological Transition, Sara Aagesen, specifically highlighted this economic risk. According to one of the scenarios considered by the government, the absence of these requirements could increase electricity bills by up to €5 billion and raise the cost of electricity consumed by industry by around 25%.
80% renewable, measured hour by hour
The main requirement will be to demonstrate that 80% of electricity consumption comes from renewable energy with hourly correlation ; that is, that the calculated renewable production matches the center's demand at each hour. This requirement will remain in place until renewables exceed 90% of the national electricity mix.

Furthermore, the decree introduces an additionality criterion. The generation used to justify that 80% must have been incorporated into the system, in general, no more than 36 months before the data center becomes operational , although exceptions are made for photovoltaic installations, certain biomass plants, and repowering projects. Self-consumption, storage, and supply contracts of more than six years may also be included.
This measure introduces a significant difference compared to a simple annual renewable energy contract. New projects will have to demonstrate not only that they purchase clean energy, but also that this energy is additional and temporarily supplements their consumption profile.
Flexibility opens an alternative path
The Royal Decree also acknowledges that not all data centers are required to behave as completely rigid loads. For five years following the approval of the regulation, those participating in the Automatic Power Reduction System and accepting priority disconnection will be able to opt for an alternative regime.
By the end of 2028, they must demonstrate an additional 60% renewable energy consumption during peak hours (P1). From then on, the percentage will increase to 70% and will apply to both peak and off-peak hours (P1 and P2) until the five-year period is completed.
This possibility fully introduces flexibility into the debate surrounding the arrival of large electricity demands. In contrast to a model where data centers consume virtually no energy at all, the government seeks to reward projects capable of partially adapting their operation to the system's needs and reducing power during critical periods.
Failure to comply will have economic and regulatory repercussions
The new obligations will not be limited to the time of obtaining permits . The decree establishes verification mechanisms during operation and provides for automatic compensation on the electricity bill when there are deviations from the commitments made.
These payments will be proportional to the degree of non-compliance and will be used to finance the capacity mechanisms of the electricity system. Furthermore, penalties may include suspension of the right of access and connection for up to three years.
Projects already underway will have six months to adapt to the new conditions, a period that will be reduced to three months for those awaiting a competitive bidding process . They may also waive the granted rights without the deposited guarantees being executed.
Water, efficiency, and transparency also enter into the equation.
The regulation also broadens its focus beyond electricity. Data centers will have to meet water and energy efficiency requirements aligned with European regulations , and while the EU labeling system is being finalized, a transitional regime will apply with a Water Efficiency Unit (WUE) of 0.1 or less and a Power Usage Effectiveness (PUE) of 1.25 or less.
Transparency obligations are also being strengthened. Data centers larger than 500 kW will have to submit information on efficiency and sustainability to the Ministry for Ecological Transition and the Demographic Challenge (MITECO) annually, while those larger than 1 MW will also have to detail their level of compliance with the best practices of the European code of conduct on energy efficiency.
In parallel, the decree incorporates digital sovereignty requirements for high-level public systems, regardless of the center's processing power. Among other conditions, the most sensitive data must remain within the European Economic Area, and operators will have to effectively control access from third countries during support, maintenance, or administration tasks.
Within this framework, Spain is attempting to manage an expansion that will continue to require large amounts of power, but is introducing a more demanding condition for those seeking access to the grid. Data centers will no longer have to demonstrate only that capacity is available, but also that their consumption can be integrated without passing on additional costs to the rest of the system and that their demand will be backed by new renewable generation or a sufficient degree of flexibility.









