born in surry county, north carolina (present-day forsyth county), williams attended the university of north carolina at chapel hill, graduating in 1808. he was first elected to the north carolina house of commons in 1812, serving for a single term (1813-1814) before being elected to the 14th united states congress as a (jeffersonian) republican in 1814.