This is the electoral history of James Buchanan. He was the 15th president of the United States (1856-1860); 17th United States Secretary of State; United States Minister to the United Kingdom and Russia; U.S. representative from Pennsylvania's third (1821-1823) and fourth congressional district (1823-1831); and U.S. senator from Pennsylvania (1834-1845).