Less than three short weeks ago pollsters were predicting a remain vote in the EU referendum. On Wednesday, Theresa May will become the UK's new Prime Minister.
In the days since Thursday, June 23, the country has been hit by a whirlwind of events which culminated in Mrs May becoming the UK's 76th Prime Minister.
In order to recap the madness of the last 20 days, we have compiled a guide for you.
Thursday, June 23
The UK goes to the polls in the EU referendum and votes on whether the country should remain in the European Union or leave it.
Friday, June 24
The results of the EU referendum are announced early in the morning. The UK votes by 52% to 48% to leave the EU.
Friday, June 24
Just hours after the referendum result is announced, David Cameron - who backed a Remain vote - says Britain requires "fresh leadership" to negotiate the country's exit from the EU and resigns as Prime Minister.
Sunday, June 26
In the early hours of the morning Jeremy Corbyn sacks then shadow foreign secretary Hilary Benn.
Sunday, June 26 - Monday, June 27
Following the sacking of Hilary Benn, the vast majority of Jeremy Corbyn's shadow cabinet resigns. Most of these resignations take place on Sunday, June 26, and Monday, June 27. In total 40 shadow cabinet ministers resign.
Monday, June 27
At a meeting of the Parliamentary Labour Party, MPs pass a vote of no confidence on Jeremy Corbyn. The vote is 172 no confidence votes, to 40 in support.
Tuesday, June 28
Jeremy Corbyn releases statement refusing to step down as Labour leader.
Wednesday, June 29
Work and Pensions Secretary Stephen Crabb announces he will run in the Conservative leadership contest.
Wednesday, June 29
Liam Fox announces he will stand to be the next leader of the Tory Party.
Thursday, June 30
Michael Gove puts himself forward as a candidate to be the next leader of the Tories.
Mr Gove says he does not believe that then favourite to win, Boris Johnson, could "provide the leadership or build the team for the task ahead".
Andrea Leadsom announces her bid to become the next leader of the Conservative Party.
Theresa May announces her bid in the Tory leadership race.
In a speech in which many anticipated Boris Johnson would announce his bid to become the next leader of the Conservative Party, he announces he will not run.
It is reported that Angela Eagle will challenge Jeremy Corbyn's leadership of the Labour Party.
Tuesday, July 5
Former Chancellor Ken Clarke is filmed ridiculing Tory candidates in a recorded off-air chat with Sir Malcolm Rifkind.
Liam Fox is eliminated from the Tory leadership race after gaining just 16 votes.
After coming fourth in the first round of voting, Stephen Crabb drops out of the race to be the next leader of the Conservatives. Mr Crabb backs Theresa May instead.
Thursday, July 7
Michael Gove is eliminated from the Conservative leadership contest in the second round of voting.
Saturday, July 9
In an interview with The Times, Andrea Leadsom appears to say she would make a better prime minister than Theresa May because she has children.
Monday, July 11
Angela Eagle formally announces leadership bid against Jeremy Corbyn.
Andrea Leadsom pulls out of the Tory leadership race, saying she did not believe she had sufficient support.
Theresa May is officially declared as the new leader of the Conservative Party.
Wednesday, July 13
Theresa May becomes the 76th Prime Minister of the UK.