James A. Garfield served as the 20th president of the United States from March 4, 1881, until his assassination on September 19, 1881. That means his presidency lasted about 200 days, making his term one of the shortest in U.S. history.