The premiership of David Cameron began on 11 May 2010 when Cameron accepted the Queen's invitation to form a government. This occurred upon the resignation of Cameron's predecessor as Prime Minister of the United Kingdom, Gordon Brown. While serving as Prime Minister, Cameron also served as First Lord of the Treasury, Minister for the Civil Service and Leader of the Conservative Party.
After the 2010 general election, Cameron became Prime Minister at the head of a coalition government between the Conservatives and the Liberal Democrats, as no party had gained an overall majority in the House of Commons. As one of his first moves Cameron appointed Nick Clegg, the leader of the Liberal Democrats, as Deputy Prime Minister. Between them, the Conservatives and Liberal Democrats controlled 363 seats in the House of Commons, with a majority of 76 seats.
After the 2015 general election, Cameron remained Prime Minister, this time at the head of a Conservative-only government with a majority of 12 seats.
Following the vote by the British public to leave the European Union in a 2016 referendum, Cameron resigned his position in a televised speech on the morning of 24 June 2016. The Prime Minister, who had campaigned against leaving the EU, said that he had informed the Queen of his decision before going to the public. Speaking outside of 10 Downing Street, he remarked that "fresh leadership" needed to come in, stating that he would hold his position until the Tory conference to be held in October. He officially resigned as Prime Minister on 13 July 2016, following the unopposed victory of Theresa May in the leadership election on 11 July.