He was primarily responsible for the bill which authorized the first census of the population of Great Britain and Ireland. In 1801 he became chief secretary for Ireland. In February 1802 he became Speaker of the House of Commons and he retained this post until May 1817 when he resigned on health reasons.
For his services he was awarded a peerage and became Baron Colchester.
He died in 1829 leaving two sons.