 Sir William Jenkins, the MP for Neath, died in December 1944.As a local candidate, Williams won the sponsorship of the miners and was chosen to follow him; he was elected to Parliament at a by-election in May 1945.At the 1945 general election a few weeks later, his majority was among the highest in the country.