A historic day in the United Kingdom's history was rubber-stamped at 6.01am on Friday when it was confirmed that the public had voted to leave the European Union.
Here we take a look at a timeline of events of a night which will have far-reaching effects, not just for the UK, but also Europe and the rest of the world, not to mention Prime Minister David Cameron.
10pm - Polls closed across the United Kingdom and a YouGov poll suggested Remain was at 52% and Leave on 48%.
10.15pm - Shortly after the polls closed, Ukip leader and frontline Leave campaigner Nigel Farage revealed he suspected that the Remain vote would win saying that they "would edge it".
10.28pm - A letter signed by 84 MPs, two thirds of whom openly backed Vote Leave, was delivered to Downing Street, urging Cameron to stay on whichever way the result goes.
11.35pm - The first result of the vote was declared from Gibraltar where an expected landslide win for the Remain vote of 96% was announced.
The Leave campaign put a positive spin on the result.
11.39pm - Farage backtracks from his earlier comments and suggests that the Leave campaign might yet win, although he is not wholly convincing.
11.59pm - Newcastle-upon-Tyne was second to announce with a slight win for the Remain campaign by 1,806 votes from a total of 129,072. It was an expected win in Newcastle, but not by the margin many suspected, and shortly afterwards the odds of Leave winning the vote was slashed by bookmakers.
12.15am -The first major sign that the Vote Leave campaign was set to win came with the result from Sunderland. Leave was expected to get the nod in the North East region - however, a 61.3% majority was larger than forecast and pushed Leave into the lead for the first time.
12.28am - The effects of the Sunderland announcement were soon felt in the value of the British pound.
1am - Big wins for Leave followed in Swindon, Hartlepool and Kettering, which provoked an unlikely response from American actress Lindsay Lohan on social media as she made a series of *observations*.
1.24am - As more results started to be confirmed it became apparent that Scotland would play a central part of the Remain vote.
1.30am - People started to sense that Leave would win, and it showed in their Google searches.
2.07am - Farage happy with North East England results as he began to reveal his growing optimism.
2.13am -George Galloway called a victory for Leave.
2.30am - Remain went back ahead for the first time since the Sunderland announcement after big wins in Lambeth and Glasgow.
3.44am - But over the next hour the Leave campaign enjoyed gain across Wales, Northern Ireland, Yorkshire and the Midlands to dwarf the majority of Remain's support in Scotland and London.
3.52am - Labour MP John Mann said David Cameron would be "out before the kids come home from school" as a Brexit looked increasingly likely.
3.57am - Sterling's slide against the dollar continued after a string of victories for Leave appeared to show its lead consolidating. Latest trading figures show the pound at 1.37 dollars, down from a high last night of over 1.5 dollars.
4am - Farage was in a triumphant mood after returning to a Brexit party, saying: "If the predictions are right, this will be a victory for real people, a victory for ordinary people, and a victory for decent people. Let June 23 go down in our history as our independence day."
Asked if Cameron should quit if there is a vote in favour of Leave, he replied: "Immediately."
4.38am - Conservative Stephen Crabb said he did not think the Prime Minister "could have done any more" and it was "absolutely essential" that he remained in No 10.
4.53am - Jenny Watson, national chief counting officer, said the estimate for turnout for the referendum was 72.2%.
4.55am - Farage's comment that Leave had gained victory "without a single bullet being fired" prompted anger from some corners of the internet.
5.07am - People started to wake up to the news of the vote and celebrities began to have their say.
Farage labelled it 'Independence Day'.
6.01am - Finally, official confirmation that the UK public has voted to leave the EU.