Republican Ronald Reagan defeated Carter in the 1980 presidential election. Although Deputy Secretary of State Warren Christopher had completed negotiations under Algerian auspices to free the American hostages in Tehran, President Carter and Secretary of State Edmund S. Muskie, suffered to their last day in office. On January 20, 1981, the hostages were finally freed—but only after Ronald Reagan had been sworn in as president.