King William IV's opposition to the Whigs' reforming ways led him to dismiss Melbourne in November. He then gave the Tories under Sir Robert Peel an opportunity to form a government. Peel's failure to win a House of Commons majority in the resulting general election (January 1835) made it impossible for him to govern, and the Whigs returned to power under Melbourne that April. This was the last time a British monarch attempted to appoint a government to suit his own preferences.