After the number of districts held by Tennessee had been reduced, Williams was elected by Tennessee's eleventh district to the Thirty-first and Thirty-second Congresses. He served from March 4, 1849 to March 3, 1853.
He was not a candidate for renomination in 1852. He resumed the practice of law in Lexington, Tennessee.