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. The Republican Party nominated Hayes as its candidate for the presidency in 1876, where he won through the Compromise of 1877 that officially ended Reconstruction by leaving the South to govern itself. In office he withdrew military troops from the South, ending Army support for Republican state governments in the South and for the efforts of African-American freedmen to establish their families as free citizens. Hayes promoted civil-service reform, and attempted to reconcile the divisions left over from the Civil War of 1861–65 and the Reconstruction Era of 1865–77. There was considerable debate about which person or house of Congress was authorized to decide between the competing slates of electors, with the Republican Senate and the Democratic House each claiming priority.