He left Oxford in 1819 and settled at Laleham, near Staines, where he took pupils for the university.
Shortly after he settled at Laleham, he married Mary, youngest daughter of the Rev. John Penrose, rector of Fledborough, Nottinghamshire.
After nine years spent at Laleham he was induced to offer himself as a candidate for the vacant head-mastership of Rugby; and though he entered somewhat late upon the contest, and though none of the electors was personally known to him, he was elected in December 1827.
William was educated at Laleham, Eton, Harrow and Balliol College, Oxford.