 He was subsequently elected to the first of two consecutive terms in U.S. House of Representatives in 1856.He resigned from his second term in 1861 to form the Seventh Regiment of the Georgia Volunteer Infantry in the Confederate army during the Civil War.In 1862, Gartrell was elected to the Confederate Congress and served in that capacity until 1864.