 In 1872, he was elected as a Republican to the 43rd United States Congress and served from March 4, 1873 to July 1, 1874.Also in 1872 he was chosen to be a presidential elector.He was U.S. Attorney for the Southern District of New York from 1877 to 1883.