What happened on EU referendum result day?

It's been a historic day for the UK, with people voting to leave the European Union, a club of 28 countries.

The country has been a member of the EU for more than 40 years.

Soon after the result, Prime Minister David Cameron announced he would be resigning - he had campaigned for the UK to stay in the EU.

Naz reports from London on what's been happening on this massive day.