 Thomas was elected from North Carolina's 2nd congressional district as a Republican to the Forty-second and Forty-third Congresses (March 4, 1871 – March 3, 1875).He was an unsuccessful candidate for Republican renomination in 1874, losing to John A. Hyman, the first African American elected to Congress from the state.Thomas returned to his law practice in New Bern.