Rutherford Birchard Hayes (October 4, 1822 – January 17, 1893) was the 19th president of the United States from 1877 to 1881, after serving in the U.S. House of Representatives and as governor of Ohio. A lawyer and staunch abolitionist, he defended refugee slaves in court proceedings in the antebellum years. . An attorney in Ohio, Hayes served as city solicitor of Cincinnati from 1858 to 1861. When the Civil War began, he left a fledgling political career to join the Union Army as an officer. Hayes was wounded five times, most seriously at the Battle of South Mountain in 1862. He earned a reputation for bravery in combat and was promoted to the rank of brevet major general. After the war, he served in Congress from 1865 to 1867 as a Republican. Hayes left Congress to run for governor of Ohio and was elected to two consecutive terms, from 1868 to 1872. Later he served a third two-year term, from 1876 to 1877.