A renewed opportunity for election to the House of Commons arose in 1905 as a result of dissatisfaction in the Carmarthen Boroughs constituency with the sitting member, Alfred Davies.
In due course Williams prevailed and at the 1906 general election, he was elected Member of Parliament (MP) for the constituency .