When Russia invaded Ukraine in early 2022, the world felt the shockwaves. But for 150 million people in Pakistan, the disruption that followed triggered something unexpected: the largest rooftop solar boom in the country's history.
Battered by energy shocks, private Pakistani investment in solar panels skyrocketed. Today, those panels on rooftops across the country produce one-fifth of the nation's entire electricity supply — a staggering 20 percent, according to data reviewed by The Guardian from multiple research think tanks.
Pakistan's solar revolution began when the Russia-Ukraine war upended natural gas contracts. Millions of Pakistanis were left without power or forced to pay sky-high energy bills. But a decade of falling solar panel costs — driven largely by China's manufacturing scale — had quietly opened a door. A Pakistani family could now buy a few panels, install them on their roof, and break free from blackouts and expensive grid electricity.
"People who could afford to do it at that time realized that it was much cheaper and cost-effective and better for them in the long run to do a one-time investment in rooftop solar as opposed to keep paying high electricity bills from a grid that is also unreliable," said Nabiya Imran, an energy analyst at Renewables First, a Pakistani think tank.
The shift happened faster than anyone predicted. Within just three years, so many Pakistanis had installed solar panels that Qatar's state energy company — bound by a long-term contract to ship liquefied natural gas to Pakistan — had to reroute its cargo elsewhere. There simply wasn't enough demand anymore. By February 2026, Pakistan had avoided roughly $12 billion in oil and gas imports thanks to homegrown solar power.
Then came another blow. When the United States launched an attack on Iran in the Persian Gulf, oil prices surged above $100 per barrel, and Pakistan's remaining LNG shipments effectively stopped. But this time, the country was ready.
"Distributed solar has been a blessing for Pakistan," said Haneea Isaad, an energy finance specialist at the Institute for Energy Economics and Financial Analysis. "Pakistan serves as a great case study as to how renewables can provide a hedge against dependence on fossil fuels."
For a country that spends the equivalent of 10 percent of its entire GDP importing fossil fuels, solar is no longer just about helping the planet — it's a matter of national survival. Isaad expects the latest oil price shock will push even more Pakistani households to go solar, and some utility companies to invest in battery storage to handle evening electricity demand.
Imran put it plainly: whatever people's reasons for choosing solar worldwide, in Pakistan — a nation constantly squeezed by global fuel markets — rooftop panels have become a form of energy independence.
