David Cameron, who as Prime Minister had campaigned to remain within the European Union, announced on 24 June 2016, immediately following the announcement of the referendum results, that he would resign from his post.