In August 1861, Garfield received a commission as a colonel in the 42nd Ohio Infantry regiment. He later served as chief of staff to General William S. Rosecrans. Garfield was the 20th president of the United States, serving from March 4, 1881, until his assassination later that year.