Cavendish was returned to parliament as the MP for Cambridge University in 1829, a seat he held until July 1831, when he was returned for Malton. He only sat for Malton until September of the same year and was out of the House of Commons until 1832, when he was returned for North Derbyshire. He succeeded his grandfather in the earldom of Burlington in 1834 and entered the House of Lords. In 1858, he also succeeded his cousin as Duke of Devonshire. He was Lord-Lieutenant of Lancashire from 1857 to 1891 and Lord-Lieutenant of Derbyshire from 1858 to 1891. Devonshire was Chancellor of the University of London from 1836 to 1856, Chancellor of the University of Cambridge from 1861 to 1891, and Chancellor of the Victoria University from 1880 to 1891. At Cambridge he endowed the Cavendish Professorship of Physics, and the building of the Cavendish Laboratory. He made vast investments in heavy industry at Barrow-in-Furness, and had his nearby country houseHolker Hall rebuilt in its present form after it was gutted by a fire in 1871. He was one of the original founders of the Royal Agricultural Society in 1839, and was president in 1870. On 26 July 1871, he was nominated a trustee of the British Museum. The 7th Duke inherited a considerable amount of property in Eastbourne from his grandfather, and from his wife Elizabeth Compton of Compton Place. He saw through the development of Eastbourne in the 19th century with its parks, baths and squares and is commemorated by a statue at the top of Devonshire Place. The Duke also played a part in the foundation of Eastbourne College, the local independent school, by selling some of his land at a modest price to build the school on and commissioning respected architect Henry Currey to design the school chapel and College House.
Personal life
In 1829, Devonshire married Blanche Georgiana Howard, daughter of George Howard, 6th Earl of Carlisle, and the former Lady Georgiana Cavendish, sister of the 6th Duke of Devonshire, known as the "Bachelor Duke". Blanche was the Bachelor Duke's favourite niece, and his fondness for the young couple who were his heirs may have contributed to his decision not to marry himself. He commemorated Blanche with an inscription in the Painted Hall at Chatsworth, which states that he completed his reconstruction of the house in the year of his bereavement, 1840, and by Blanche's Urn at the top of the Long Walk in the garden. Together, Blanche and William were the parents of five children:
Lord William Cavendish, who died at the age of two.
After a long illness, Devonshire died at his residence, Holker Hall near the village of Cartmel in Cumbria, England, on 21 December 1891.
Descendants
Through his daughter Lady Louisa, he was a grandfather of William Francis Egerton, who married Lady Alice Osborne, a daughter of George Osborne, 9th Duke of Leeds, on 7 August 1894 ; Commander Frederick Greville Egerton ; Blanche Harriet Egerton ; Dorothy Charlotte Egerton ; and Christian Mary Egerton.