

As President, Carter created two new cabinet-level departments: the Department of Energy and the Department of Education. He established a national energy policy that included conservation, price control, and new technology. In foreign affairs, Carter pursued the Camp David Accords, the Panama Canal Treaties, the second round of Strategic Arms Limitation Talks (SALT II), and returned the Panama Canal Zone to Panama.
Throughout his career, Carter strongly emphasized human rights. He took office during a period of international stagflation, which persisted throughout his term. The end of his presidential tenure was marked by the 1979–1981 Iran hostage crisis, the 1979 energy crisis, the Three Mile Island nuclear accident, the Soviet invasion of Afghanistan (at the end of 1979), and the 1980 eruption of Mount St. Helens.
By 1980, Carter's popularity had eroded. He survived a primary challenge against Ted Kennedy for the Democratic Party nomination in the 1980 election, but lost the election to Republican candidate Ronald Reagan. On January 20, 1981, minutes after Carter's term in office ended, the 52 U.S. captives held at the U.S. embassy in Iran were released, ending the 444-day Iran hostage crisis.