The hostage crisis ended with the signing of the Algiers Accords in Algeria on 19 January 1981. The hostages were formally released to United States custody the following day, just minutes after Ronald Reagan was sworn in as the new American president.