In 1868, he was elected as a Democrat to represent New York's 10th District in the 41st United States Congress. He was reelected to the 42nd and 43rd Congresses, the last term from the 11th District, and served from March 4, 1869 to March 3, 1875.