Egypt faces plenty of threats, from a growing insurgency in the Sinai to a shaky and still unstable presidential regime. But the dramatic reversal in the country's energy fortunes in recent years, and the stark challenges that poses for the economy could end up proving the biggest headache for strongman Abdel Fattah al-Sisi.

Before the Arab Spring, Egypt turned its abundant reserves of natural gas, the third largest in Africa, into lucrative exports shipped to Europe and Asia. It sent gas by pipeline to neighboring countries, including Jordan and Israel. It had ambitious plans to further develop offshore natural gas resources, and was expanding its creaky electricity system on the back of natural-gas fired power plants.

Today, Egypt is scrambling to import natural gas just to meet skyrocketing domestic demand. Exports have plummeted: One of the two terminals that liquefied natural gas and shipped it to southern Europe has been shuttered since 2012; the other is wheezing, starved of gas for export by voracious demand at home.

In a sign of just how quickly Egypt's once-advantageous position has changed, there are reportedly talks underway to import gas from Israel -- less than two years after Cairo shut off exports headed there.

The abrupt reversal is a result of unsustainable economic policies, such as generously subsidized fuel prices at home that spur unbridled growth in gas consumption. And it's one big cause for concern about Sisi's ability to tackle the country's economic challenges.

The energy crunch threatens the electric power sector and big portions of Egyptian industry. The IMF forecasts Egyptian growth of just 2.8 percent this year, among the lowest in the region, making it even tougher to cut into double-digit unemployment. Coupled with blackouts and energy shortages, that could conjure up a repeat of the tumult of 2011 and 2013, which led to the toppling of Hosni Mubarak and Mohamed Morsi.

"The inevitable result is energy shortages and the concomitant social pressures that come with blackouts, lack of cooking gas, and fuel," Steven Cook, an Egypt expert at the Council on Foreign Relations, told Foreign Policy. "Sisi is going to have to confront these serious economic problems or he too will be confronted with people in the streets demanding change, and it won't just be the Muslim Brotherhood."

In 2009, Egypt exported 647 billion cubic feet of gas, mostly liquefied gas to satisfy demand in Europe, but also gas shipped by pipeline to Israel and Jordan. By 2012, gas exports had fallen to less than half, or 256 billion cubic feet; pipeline exports plummeted to one-tenth of their peak level. In 2013 exports continued to plunge. The latest government figures showed nearly a 50 percent decline in year-on-year exports in November.

The impacts aren't limited to Egypt or its reeling fiscal situation. Spanish utility Gas Natural Fenosa, which started importing gas from an LNG terminal in Egypt a decade ago, has watched the terminal sit idle since 2012. British gas giant BG Group in January declared "force majeure" and took a $1.2-billion-dollar write-down on its Egyptian LNG operations because natural gas is being diverted from exports for domestic use. The company warned investors that it doesn't know how much, if any, Egyptian gas it will be able to export this year. Consuming countries, including Japan and India, that once imported Egyptian gas have had to find alternative supplies on the spot market.

What's to blame for the sudden turnabout? Gas production has declined in recent years, but that's only partly responsible for the crunch. More important has been the jump in domestic consumption of natural gas, which rose 25 percent between 2009 and 2012 and which has essentially doubled over the last decade. More consumption at home leaves less gas for export, even though gas sold to Europe and especially to Asia is worth billions of dollars a year, while gas fed into the domestic market is kept artificially cheap.

Demand is growing so fast because Egypt, like other countries in the Middle East, heavily subsidizes the cost of energy, including fuel for transportation and natural gas for power generation. Energy subsidies alone represent about 10 percent of Egypt's GDP, according to the most recent budget. Natural-gas prices in particular have been kept low for industrial users, the power sector, and especially for households.

The Egyptian government is trying to tackle the cost of energy subsidies, especially as it struggles to rein in a budget deficit approaching 14 percent of GDP. In recent years, Egypt has tweaked the prices that big energy consumers, such as cement manufacturing plants, pay for gas, but the reforms didn't affect the cost of gas used in power generation, the biggest source of domestic demand. This year, backed by a grant from the World Bank, the country started work on a comprehensive reform of energy pricing, but experts say the country will be hard-pressed to roll back subsidies and ease fiscal pressure any time soon.

Raising domestic energy prices would threaten social unrest; but spending billions subsidizing energy aggravates the deficit and removes a source of substantial export earnings.

"In its attempt to correct energy market structure and distortions, the Egyptian government is caught between a rock and a hard place," concluded one report prepared by the Arab Petroleum Investments Corporation.

Ultimately, Egypt hopes to pull itself out of the energy crisis by boosting production from the promising reserves found offshore; BP announced a major new gas discovery last fall, for example. But raising production requires getting those international energy firms to invest, something that's proven devilishly difficult thanks to the domestic unrest, unfavorable contract terms for exploration, and the fact that Egypt owes foreign energy firms about $6 billion. Dwindling export revenues and increasing subsidies only add to that financial distress.

In the meantime, to meet demand and bridge the supply shortfall in coming years, the Egyptian government is trying to import natural gas, a stark turnabout for a country that was a big supplier.

But there are two big problems with that strategy: The government can't quite manage to build a terminal that can receive LNG for the local market, and imported gas is a lot pricier than Egyptian gas.

Plans to contract with a Norwegian firm to build a floating LNG import terminal appear to be on hold, and the Egyptian government's hopes of securing LNG imports in time for the summertime jump in demand appear to be dashed. Even if Egypt can get an import terminal, it will have to pay market prices for imported natural gas, which are much higher than domestic prices.

All of that is bad news for Egyptian firms that rely on natural gas for power. The cement industry, for example, has been hammered over the past year because of natural-gas supply shortages. The Lafarge Group, a big cement maker, said production tumbled in Egypt last year because of gas supply shortages. And things are getting worse: In January, the state-owned natural gas holding company slashed gas allocations for cement plants by 50 percent, driving down production by a similar amount.

While that's bad news for the economy, especially at a time when tourism revenues are in free fall thanks to domestic turmoil and terrorism, a more immediate danger to the Egyptian government could come from the electric power sector.

Blackouts used to be a summertime phenomenon, because higher temperatures increased the need for electricity. But they've now become commonplace even in the winter, thanks to supply shortages.

"The long gas lines and constant electricity cuts that occurred under Morsi could return under Sisi, enraging the public and broadening support for protests," Eric Trager and Gilad Wenig recently noted in Foreign Affairs.