The Whig Junto is the name given to a group of leading Whigs who were seen to direct the management of the Whig Party and often the government, during the reigns of William III and Anne. The Whig Junto proper consisted of John Somers, later Baron Somers; Charles Montagu, later Earl of Halifax; Thomas Wharton, later Marquess of Wharton, and Edward Russell, later Earl of Orford. They came to prominence due to the favour of Robert Spencer, 2nd Earl of Sunderland and during the reign of Queen Anne, Sunderland's son, the 3rd Earl succeeded his father. Opponents gave them the nickname "the five tyrannising lords". Other figures prominent around the edges of the Junto include Sir John Trenchard and Thomas Tollemache. Somers, Wharton, Russell and Montagu were elected to the House of Commons in 1689 and were granted minor office. Their effectiveness in the Commons brought them Sunderland's attention. The Junto began to dominate the ministry from the time of the resignation of the Tory Secretary of State Lord Nottingham in 1693, communicating to the King and Sunderland through the Whig Secretary of State, the Duke of Shrewsbury. As the members of the Junto entered the Lords — Somers was made Lord Keeper in 1693 and was promoted to a barony four years later, Wharton succeeded his father as Baron Wharton in 1696, Russell was created Earl of Orford in 1697 and Montagu(e) was created Baron Halifax in 1700 — their hold on the Commons weakened and by 1700 the Junto was largely out of power. In 1701 Somers, Orford and Halifax were impeached but survived the attack and late in the year the Junto seemed set to return to power in order to help the king rally support for the War of the Spanish Succession. However, King William's death in March 1702 delayed their return: Queen Anne detested them and refused to include them in the ministry, which was instead dominated by High Tories, with whom her sympathies lay. With the elder Sunderland dead, the Junto's connection to his son — who was the son-in-law of the Queen's favourite couple, the Duke and Duchess of Marlborough — proved useful, as did the Junto's support of the war, which contrasted with Tory ambivalence to it. In 1705 Somers's protégé Lord Cowper, whom the Queen liked and trusted, was made Lord Keeper and in 1706 Sunderland became a Secretary of State,