He was re-elected MP for Derbyshire in the twoelections of 1679 and in 1681. He was made a privy councillor by Charles II, but he soon withdrew with his friend Lord Russell, when he found that the Roman Catholic interest uniformly prevailed. In January 1681 he carried up to the House of Lords the articles of impeachment against Lord Chief Justice William Scroggs, for his arbitrary and illegal proceedings in the court of King's bench, and later when the king declared his resolution not to sign the bill for excluding the duke of York (afterwards James II), he moved in the House of Commons that a bill might be brought in for the association of all his majesty's Protestant subjects. He also openly denounced the king's counsellors, and voted for an address to remove them. He appeared in defence of Lord Russell at his trial, and after the condemnation he gave the utmost possible proof of his attachment by offering to exchange clothes with Lord Russell in the prison, remain in his place, and so allow him to effect his escape.[1]
The famed political philosopher Thomas Hobbes spent the last four or five years of his living at Chatsworth House, owned by the Cavendish family, and died at another Cavendish estate, Hardwick Hall in December 1679. He had been a friend of the family since 1608 when he first tutored an earlier William Cavendish.[3][4]
In 1684 he succeeded to the peerage as Earl of Devonshire on the death of his father and then sat in the House of Lords.[2] He opposed the arbitrary acts of James II until his enemies found an excuse to neutralize him; after an imagined insult by a Colonel Colepepper, Cavendish struck his opponent and was immediately fined the enormous sum of £30,000. He was unable to pay and was briefly imprisoned until he signed a bond (which was eventually cancelled by King William). The earl went for a time to Chatsworth House, where he occupied himself with the erection of a new mansion, designed by William Talman, with decorations by Antonio Verrio, James Thornhill, and Grinling Gibbons.[1]
Cavendish was a strong supporter of the "Glorious Revolution" of 1688 which brought William III of Orange to the throne, signing as one of the Immortal Seven the invitation to William. On the occasion of the coronation he was awarded the Order of the Garter.[1]
After the revolution, Cavendish was a leading Whig, serving as William's Lord Steward, and was created the Duke of Devonshire (1694) and also Marquess of Hartington in recognition for his services. His last public service was assisting to conclude the union with Scotland, for negotiating which he and his eldest son, the marquis of Hartington, had been appointed among the commissioners by Queen Anne.[1]
Cavendish was given an honorary M.A. by the University of Cambridge in 1705.[5] The year before he had ended the successful career of the singer and dancer Mary Campion. She is thought to have given her last performance on 14 March 1704 (and she may have been the daughter of one of his servants). Cavendish installed her as his mistress at Bolton Street in Westminster despite already having several mistresses already, a number of children by them and of course Lady Mary Butler, his wife.[6] They had a child named Mary Anne Cavendish before Mary Campion died of a fever on 19 May 1706. Cavendish surprised many by having her buried in the family church in an extravagant tomb. He did not attend her funeral and he died, some say in repentance, the following year.[6]