On 4 November 1979, a group of Muslim students seized the United States Embassy and took the embassy with 52 personnel and citizens hostage, after the United States refused to extradite Mohammad Reza Pahlavi to Iran, where his execution was all but assured. Attempts by the Jimmy Carter administration to negotiate for the release of the hostages, and a failed rescue attempt, helped force Carter out of office and brought Ronald Reagan to power. On Jimmy Carter's final day in office, the last hostages were finally set free as a result of the Algiers Accords. Mohammad Reza Pahlavi left the United States for Egypt, where he died of complications from cancer only months later, on 27 July 1980.