The International Monetary Fund has reached an initial agreement with Egypt for a $12 billion loan over three years, the fund said on Thursday.

The Egyptian government hopes the loan will provide a lifeline amid a dollar shortage, dwindling foreign reserves and an economy battered by years of unrest.