President Carter faced many domestic and foreign policy challenges during his presidency from 1977-1981. Domestically, he tried to tackle high inflation and unemployment by developing a national energy policy focused on conservation and alternative energy. However, inflation continued to rise. He had some environmental successes but the Three Mile Island incident increased concerns about nuclear power. In foreign policy, Carter recognized China, pursued arms limitations with the USSR, and brokered the Camp David Accords between Egypt and Israel. However, the Soviet invasion of Afghanistan and Iranian hostage crisis undermined his presidency and contributed to his loss in the 1980 election.