In the 1841 United Kingdom general election, there was a big swing as Sir Robert Peel's Conservatives took control of the House of Commons. Melbourne's Whigs had seen their support in the Commons erode over the previous years. Whilst Melbourne enjoyed the firm support of the young Queen Victoria, his ministry had seen increasing defeats in the Commons, culminating in the defeat of the government's budget in May 1841 by 36 votes, and by 1 vote in a 4 June 1841 vote of no confidence put forward by Peel. The Whigs and Tories were at odds over whether Melbourne's defeat required his resignation, with the Queen being advised by Lord Brougham that calling an election would be without precedent, and that it should only be dissolved to strengthen the government's hands, whereas dissolution facing the Whigs in 1841 was expected to result in their defeat. Melbourne himself opposed dissolution, although his cabinet came to accept it, and Melbourne requested the Queen dissolve Parliament, leading to an election. The Queen thus prorogued Parliament on 22 June.
The Conservatives campaigned mainly on the issue of Peel's leadership, whilst the Whigs emphasised an impersonal platform of reforming the import duties on corn, replacing the existing sliding scale with a uniform rate. The Whig position lost them support amongst protectionists, and the Whigs saw heavy losses in constituencies like the West Riding, where aristocratic Whig families who held a strong tradition of unbroken representation in Parliament were rejected by the electorate. Even radical support coalesced around the Tories, with it being felt that Peel would be more open to electoral reform. Radical opinion also appeared to favour the business background of Peel and his supporters to the aristocratic and political background of Melbourne's Whigs, with it being felt that the Whigs made poor governors.
The Whigs also lost votes to the Irish Repeal group. The Chartists picked up only a few votes despite their popular support, because voting was still restricted to a small percentage of the population. Only 3.17% of the total population voted. It is regarded as having been one of the most corrupt elections in British parliamentary history; the Westminster Review stated in 1843 that the "annals of parliamentary warfare contained no page more stained with the foulness of corruption and falsehood than that which relates the history of the general election in the year 1841".