As his time at University was drawing to a close, William decided to run for parliament. Spending £8,000 he was able to win the seat in his native Hull, entering parliament at the age of 21. He decided to be an independent, although he would lean towards the reform element of the Tory party.