Theresa May formed the first May ministry in the United Kingdom on 13 July 2016, after having been invited by Queen Elizabeth II to form a new administration. Then the Home Secretary, May's appointment followed the resignation of then Prime Minister David Cameron. The ministry, a Conservative majority government, succeeded the second Cameron ministry which had been formed following the 2015 general election. Cameron's government was dissolved as a result of his resignation in the immediate aftermath of the June 2016 referendum on British withdrawal from the European Union.