Wires Before Watts: What Spain's Blackout Teaches Schools About Energy Security
Input
Modified
Spain’s blackout showed solar alone doesn’t keep schools on Campuses need batteries, islanding inverters, and wiring upgrades Shift policy from price relief to resilience built in schools

In 2024, Spain generated 56.8% of its electricity from renewables, the highest in history. Yet in April 2025, a single grid fault plunged much of the Iberian Peninsula into darkness. This incident halted trains, disrupted hospital systems, and reminded families that solar panels cannot provide power when the grid fails. Rooftop systems across Spain shut off automatically, as designed, to protect line workers. What initially seemed like technological abundance, with Europe's sunniest hours and the world's cheapest panels, revealed its fragility without the infrastructure needed to make electricity reliable. This shock came less than three years after Europe's gas prices spiked above €300/MWh during the energy crisis caused by war, forcing households and schools to look for kilowatt-hours wherever they could. The lesson for education is straightforward yet challenging: the next rush cannot simply focus on adding more panels. It must address the social infrastructure that integrates power into everyday learning.
Spain's recent experience offers a chance to rethink the situation. The drama of "winners and losers" in energy policy hides a quieter truth: systems fail at their weakest points. From 2022 to 2024, policy and prices drove Iberia towards rapid solar adoption. This choice made sense; module prices fell by more than half worldwide due to Chinese overproduction, and Spain's sun-rich grid was ready to take in cheap megawatts. However, when the April 2025 outage struck, the bottleneck was not a lack of panels; it was the network of wires, inverters, protections, and buildings. The issue is not whether a technology is "advanced" or "basic." It is whether society's essential institutions, especially schools, can handle volatility, keep classrooms open, and turn cheap midday energy into reliable learning hours.
Europe's war-era crisis remains a significant backdrop. The Russo-Ukrainian war raised gas prices to unprecedented levels, causing EU power demand to drop by 3% in both 2022 and 2023. Meanwhile, Iberia's emergency "gas cap" disconnected local electricity prices from the continent's worst spikes. That intervention had a limited effect; studies estimate double-digit reductions in Iberian wholesale prices during the implementation of the cap. Yet, relief on bills does not equal resilience on the ground. Households and schools still rely on circuits, wiring, and protection schemes that were never meant for bidirectional flows and sudden islanding. Therefore, the policy shift for education should not mean abandoning solar; it should focus on matching generation with the ability to endure the next disruption.

When Cheap Panels Meet Old Wires
Spain's electricity transition is genuine. In 2024, renewables accounted for a record share of generation; solar became the top source of installed capacity; and the system added 7.3 GW of new wind and PV in a single year. These results reflect a world where module spot prices fell by roughly 50-60% from 2022 to 2024, due to global oversupply and decreasing polysilicon costs. However, this speed driven by prices exposed a structural gap: rooftops began sprouting faster than the needed upgrades to networks and buildings. The result is a paradox that educators felt acutely during the April 2025 outage: the sun shone on hundreds of thousands of Spanish roofs, yet schools and homes went dark because standard grid-tied inverters are built to shut down when the grid fails. Without batteries, islanding controls, and safe transfer switching, adding "more PV" does not increase "more uptime."
This failure mode is not unique to Spain; it is a common feature of modern grids. European interconnection standards require anti-islanding, which prevents small generators from energizing inactive lines during an outage. Complying with these protections is crucial, but for schools, it is insufficient. A campus with a moderate battery, a hybrid inverter set up for intentional islanding, and prioritized critical loads can maintain essential services, including lights, networks, and refrigeration, even when the larger grid fails. Without this trio, rooftop solar becomes unreliable in the event of failures. The larger issue is older buildings: many of Spain's homes and public facilities face electrical challenges, such as outdated panels, insufficient conductor sizing, and old protection devices that hinder safe microgrid operation. These are wiring problems before they become climate issues, which is why they should be part of the education budget.
The situation on the grid side also matters. Spain's TSO has improved transmission availability and integrated record levels of renewables. However, distribution networks— the feeders that power campuses—bear the brunt of bidirectional flows, DER coordination, and protection complexity. The April event also highlighted cross-border dependencies: Portugal briefly reduced imports from Spain as a precaution, and wholesale prices sharply diverged, reminding us that local resilience has regional implications. If policymakers focus only on generation targets, we will repeat the same mistakes during the next crisis. The education sector's resilience can lead the way: hundreds of campuses are large, well-metered, and visible places to test the wiring, controls, and storage that households will need next.
From Price Relief to Resilience: What Schools Need
Schools are not factories; they are essential community hubs. A modern campus requires guaranteed hours of light, reliable internet for learning platforms, safe indoor temperatures during heat waves, refrigeration for food and medicines, and power for safety systems. Spain already has the legal framework in place to transition from "PV for savings" to "PV for service continuity." Royal Decree 244/2019 established a workable system for collective self-consumption and energy sharing, and the newer connection codes incorporate technical requirements for distributed generators. These tools simplify the addition of storage, enable islanding configurations, and allow a school's PV to connect with a neighborhood energy community that shares resources and benefits families nearby. The technical question—"can we island safely?"—has an institutional answer: yes, if we specify, procure, and train for it.
There is currently funding and momentum to leverage. NextGenerationEU funds continue to support public-building upgrades, including schools, libraries, and sports halls. Several regions have initiated school solar programs, and private networks have installed campus PV systems that cover a substantial part of annual energy consumption. Portugal has allocated €450 million for school enhancements under its recovery plan, benefiting hundreds of thousands of students and creating a functional symmetry across the MIBEL market. The practical plan for Spain's education ministry and regional authorities is straightforward: define campus-scale batteries sized for a critical-loads panel for a set number of hours; require hybrid inverters with intentional-islanding modes that meet European standards; modernize electrical rooms and wiring to current codes; and connect campuses to local energy communities to monetize flexibility during healthy grid times and maintain continuity during outages.

There is also a procurement narrative for students and taxpayers. The same global forces that lowered module prices can make campus microgrids affordable. Costs of panels are down; system costs decrease when projects standardize; and storage economics improve when batteries serve dual purposes—peak-shaving on regular days and providing resilience during emergencies. Spain's self-consumption market cooled in 2024 as energy prices declined and subsidies decreased; however, cumulative capacity continues to increase, and the regulatory framework for energy communities is advancing. In short, the price window is open and the standards are in place. The question is whether we will define resilience results—in hours of autonomy, in avoided lost learning days—and invest in the systems needed to achieve them.
Reset the Frame: Capability, Not Hierarchy
It is tempting to view Spain's solar growth as a weakness—"not enough money or manpower for nuclear, so they opted for panels." The reality is more complex. Nuclear provided around one-fifth of Spain's generation in 2024, but policy has long planned a phase-out by 2035, which is now under debate; wind led generation, solar rose to 17% of output, and hydro recovered. These decisions arose from cost curves, permitting realities, and social preferences, not from a lack of technological capability. Europe's wartime price spikes—those €300/MWh gas days—showed the value of domestic renewables, while the Iberian "gas cap" protected local consumers from the worst effects of the crisis. These were rational choices during uncertain times. The 2025 blackout, however, exposed a different limitation: capability at the level of wires, codes, and public buildings. This is where education policy can take the lead.
Skeptics might argue that batteries are too expensive, that microgrids are complex, and that schools should focus on teaching rather than grid engineering. The counterargument is based on immediate, authentic experiences. Battery and PV costs have dropped significantly, the legal and technical standards for islanding are available, and Spain's grid operator is formalizing a distributed demand response program that schools can participate in on regular days. The alternative is to keep adding PV while classrooms remain vulnerable to rare but significant outages. This is not a call to lavish resources on every campus; it is a call to establish a basic service level—hours of autonomy for a critical loads panel, safe temperature standards during heat alerts, and minimum communications uptime—and fund it with recovery money, municipal bonds, and energy-service contracts paid off through savings. The benefit is not just fewer disrupted school days; it is a community anchor that maintains wi-fi, cooling, and essential services during times of need for families.
The cumulative effect is cultural. Education systems teach through what they create. If we view schools as resilience hubs—equipped for islanding, connected to energy communities, and able to share surplus energy on good days—we normalize a civic model of energy: local, flexible, and equitable. If we adhere to a minimalist "save on the bill" approach, we will leave classrooms at risk of the subsequent major failure and imply to students that infrastructure is someone else's concern. Neither Spain's blackout nor Europe's wartime crisis was a story of winners and losers in a meaningful way. They both tested their capabilities. The education sector can demonstrate what strong capability looks like when focused on learning time and community care, rather than just a single price point at the meter. That is how we can turn a face-losing event into a policy advantage.
The key statistic framing our choices should not just be the share of renewable generation—impressive as Spain's 56.8% is—but the hours of learning protected during periods of stress. The events of April 2025 demonstrated that inexpensive panels cannot provide that level of reliability without resilient wiring and storage. The gas spike during the war showed that billing relief, while needed, does not ensure stability. The current opportunity is to rewrite energy policy for education based on the grid we have: one where standards require anti-islanding, where rooftop PV is plentiful, and where buildings can be upgraded to function as islands when necessary. If ministries set resilience objectives, if regions standardize campus microgrids, and if schools join energy communities, the next outage will not cancel lessons; instead, it will quietly demonstrate to students that infrastructure, like education, is a public good built for a purpose. This approach defines success for the energy transition in schools.
The views expressed in this article are those of the author(s) and do not necessarily reflect the official position of the Swiss Institute of Artificial Intelligence (SIAI) or its affiliates.
References
ACER–CEER. 2024 Market Monitoring Report on Energy Retail and Consumer Protection. 30 Sep 2024.
APPA Renovables. 2024 Spanish Annual Report on Photovoltaic Self-Consumption. May 2025.
Brookings Institution. "After the Energy Crisis: Policy Responses in the Iberian Peninsula." 20 Jul 2025.
CaixaBank Research. "How the NGEU Funds Are Going in Spain." 17 Mar 2025.
Council of the European Union. "A Market Mechanism to Limit Excessive Gas Price Spikes." 19 Dec 2022.
EnergyConnects. "Why Rooftop PV Couldn't Allow Self-Consumption During Spain's Massive Blackout." 30 Apr 2025.
Enel X. "Solar Panels in Nine Spanish Schools with Globeducate." 2023.
ERSE (Portugal Regulator). "10 Questions & Answers on the Iberian Mechanism." 12 Aug 2022.
Financial Times. "Power Prices Surge in Portugal as it Suspends Spain Link After Blackout." 9 May 2025.
IEA. Electricity Market Report Update 2023. 2023.
IEA. Renewables 2024 (Report and PDF). 9 Oct 2024.
IEA. "Solar PV." (Spot-price decline summary). Accessed 2025.
IEA-PVPS. Snapshot 2024. 2024.
Red Eléctrica (REE). "Electricity Generation from Renewable Energies in Spain Grows by 10.3% in 2024, Reaching Record Levels." 18 Mar 2025.
Reuters. "Spain's Rooftop Solar Installations Fall in First Quarter." 28 May 2024.
Royal Decree 244/2019 (Spain). Self-Consumption Regulations. IDAE / Climate Laws in Europe. 2019.
Royal Decree 647/2020 (Spain). Connection Codes Implementation. BOE. 2020.
Sotysolar / PV-Tech. "Spain Adds 1.4 GW of Self-Consumption PV in 2024; 8.5 GW Cumulative." 12 Feb 2025.
El País – Negocios. “La obsolescencia eléctrica de las viviendas frena la transición energética.” 25 Jan 2025.
European Commission – Press Corner. "Spanish and Portuguese MIBEL: Commission Approves Measure to Lower Input Costs of Fossil Fuel-Fired Power Stations." 2023.
Comment