He successfully contested as a Republican the election of Alexander H. Coffroth to the Thirty-ninth Congress. He was reelected to the Fortieth Congress. He was not a candidate for renomination in 1868. He resumed the practice of law at Somerset and served as counsel for the Baltimore and Ohio Railroad. He was a member of the Pennsylvania House of Representatives from 1899 to 1902. He died in Somerset in 1911. Interment in Union Cemetery.