Carter's presidency is remembered for diplomatic achievements such as brokering the 1978 Camp David Accords between Egypt and Israel and negotiating the 1977 Panama Canal Treaties, along with major domestic initiatives including the creation of the Departments of Energy and Education and passage of the National Energy Act.
His term was marred by economic difficulties—stagflation and an energy crisis—and by the 1979–1981 Iran hostage crisis, which eroded public confidence. After leaving office he became a prominent global humanitarian and human-rights advocate, founding the Carter Center and receiving the Nobel Peace Prize in 2002.