A general election was held on the 8 June 2017 to elect all 650 members of the House of Commons of the United Kingdom. It ended in a hung parliament, with the Conservative Party winning the most seats. They made a confidence-and-supply agreement with the Democratic Unionist Party so they could pass a vote of no confidence. Theresa May stayed as prime minister.