A referendum - a vote in which everyone (or nearly everyone) of voting age can take part - was held on Thursday 23 June, to decide whether the UK should leave or remain in the European Union.
Leave won by 52% to 48%.
referendum turnout was 71.8%, with more than 30 million people voting.
It was the highest turnout in a UK-wide vote since the 1992 general
For the UK to leave the EU it has to invoke an agreement called Article 50 of the Lisbon Treaty.
Cameron or his successor needs to decide when to invoke this - that will then set in motion the formal legal process of withdrawing from the EU, and give the UK two years to negotiate its withdrawal.
The referendum result is not legally binding - Parliament still has to pass the laws that will get Britain out of the 28 nation bloc, starting with the repeal of the 1972 European Communities Act.
The withdrawal agreement also has to be ratified by Parliament - the House of Lords and/or the Commons could vote against ratification, according to a House of Commons library report.