Jimmy Carter served as president.
Jimmy Carter . During Carter 's term as President , two new cabinet-level departments , the Department of Energy and the Department of Education , were established . 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 , and the Soviet invasion of Afghanistan .