The International Monetary Fund (IMF) is to grant Egypt a $12bn loan over three years to help the country mend its ailing economy following years of unrest.
The IMF said the loan, which is subject to approval by its executive board, comes in support of a government reform programme that aims to stabilise Egypt's falling currency, reduce the budget deficit and government debt, as well as boost growth and create jobs.
"Egypt is a strong country with great potential but it has some problems that need to be fixed urgently," it said in a statement, adding that planned government measures include tax increases and cuts in energy subsidies.
Egypt said earlier this week it would raise electricity prices by a least a quarter, part of plans to eliminate the subsidies altogether by 2019.
Egypt's economy has been struggling since the 2011 popular uprising that overthrew long-time autocrat Hosni Mubarak, with high inflation, foreign currency shortages, and lack of tourism and investment.
Cairo called on the IMF, the US-based global lender of last resort, after having exhausted billions of dollars in aid from wealthy Gulf Arab nations recently humbled by low oil prices - and now turned off by persistent bureaucratic hurdles to investing in Egypt.
Egypt hopes the loans can generate momentum that will boost growth, reassure potential investors and give the country enough leeway to restructure the economy.
The budget deficit currently stands at nearly 12% of gross domestic product and the current account deficit is at almost 7%.
The government's economic programme says it will focus on helping the poor, and try to ensure that any economic rebound brings benefits to the entire population of 91 million and not just elites, as has happened during past periods of economic growth.
Economists welcomed the IMF's announcement, as well as the government's acknowledgement that it must address long-standing structural problems despite potential short-term discontent.
"I think the government will have to work on several fronts simultaneously, and some of them will be painful," said Angus Blair of investment advisory firm Signet.
"But it's necessary to shore up the budget and free up funds to be spent more efficiently, and they've recognised that."
Egyptian president Abdel-Fattah el-Sissi has faced mounting criticism of his economic stewardship in recent months, and the former general has responded with near-daily appearances and statements touting his commitment to defending the poor.
Egyptian leaders have balked at IMF loans in the past because they require subsidy cuts and other reforms that cause short-term pain, and which could spark popular unrest.
Frustrations over economic stagnation, inequality and perceived corruption were among the main factors behind the uprising that toppled Mr Mubarak in 2011 and the massive protests demanding the resignation of Islamist president Mohammed Morsi in 2013.
Mr El-Sissi, who led the military overthrow of Mr Morsi that year, has presided over a wide-ranging crackdown on dissent that has eliminated his opponents, Islamist and secular alike, as well as virtually all dissent and street protests.
Billions of dollars in Gulf aid, meanwhile, allowed the government to delay reforms over the past three years.
While the IMF cast Thursday's deal as supporting the government's own home-grown reform package, the lender is widely expected to have demanded the floating of the country's overvalued currency.
Egypt's foreign currency shortage has generated a thriving black market for US dollars and hindered the operations of multi-national companies and investors, who are holding back in anticipation of further devaluation.
Despite a rising dollar, the central bank has resisted devaluation, spending billions of dollars of its own cash reserves to prop up the Egyptian pound, and only allowing a slight devaluation last year.
The lack of foreign currency has been compounded by a drop in tourism revenues in the wake of recent terrorist attacks.
Egypt has also seen dwindling revenues from the Suez Canal because of a fall-off in foreign trade, despite a costly and much-hyped expansion of the key trading channel linking the Mediterranean to the Red Sea.
The foreign currency shortage is all the more worrying in a country highly reliant on imports, including food, consumer goods and industrial parts and products.
The Egyptian pound now trades about a third weaker than its official value of 8.9 to the dollar.