James Earl Carter Jr. was an American politician and humanitarian who served as the 39th president of the United States from 1977 to 1981.