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. He was always close to Hayes and became a father figure to him, contributing to his early education.Through each of his parents, Hayes was descended from New England colonists. His earliest immigrant ancestor came to Connecticut from Scotland in 1625. Hayes's great-grandfather Ezekiel Hayes was a militia captain in Connecticut in the American Revolutionary War, but Ezekiel's son (Hayes's grandfather, also named Rutherford) left his Branford home during the war for the relative peace of Vermont.