hazelton was elected as a republican to the forty-second and forty-third congresses, serving in office from march 4, 1871 – march 3, 1875, but was an unsuccessful candidate for reelection in 1874 to the forty-fourth congress.