James Abram Garfield was the 20th president of the United States, serving from March 1881 until his assassination in September that year.