James Abram Garfield (November 19, 1831 – September 19, 1881) was the 20th president of the United States, serving from March 4, 1881, until his death six months later, two months after he was shot by an assassin. A lawyer and Civil War general, he served nine terms in the House of Representatives and was the only sitting member of the House to be elected president. Before his candidacy for the White House, he had been elected to the U.S. Senate by the Ohio General Assembly, a position he declined when he became president-elect.