 He was admitted to the bar and commenced practice in Taunton.He served as member of the Massachusetts House of Representatives, and served in the Massachusetts State Senate.Williams was elected as a Democrat to the Twenty-sixth Congress (March 4, 1839 – March 3, 1841).