Zahedi's new government soon reached an agreement with foreign oil companies to form a consortium and "restore the flow of Iranian oil to world markets in substantial quantities", giving the United States and Great Britain the lion's share of the restored British holdings. In return, the US massively funded the Shah's resulting government, until the Shah's overthrow in 1979.