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.
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.
are announced early in the morning. The UK votes by 52% to 48% to leave the EU. results of the EU referendum
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. David Cameron announcing his resignation Credit: PA
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.
Jeremy Corbyn has been under immense pressure since the EU referendum. Credit: PA
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.
Jeremy Corbyn releases statement
as Labour leader. refusing to step down
Work and Pensions Secretary Stephen Crabb announces he will run in the Conservative leadership contest.
Liam Fox announces he will stand to be the next leader of the Tory Party.
to be the next leader of the Tories. Michael Gove puts himself forward as a candidate
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".
Boris Johnson surprised everyone when he announced he wouldn't be standing in the Tory party leadership race. Credit: PA to become the next leader of the Conservative Party. Andrea Leadsom announces her bid in the Tory leadership race. Theresa May announces her bid
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
's leadership of the Labour Party. Angela Eagle will challenge Jeremy Corbyn Angela Eagle Credit: PA
Tory candidates in a recorded off-air chat with Sir Malcolm Rifkind. Ken Clarke is filmed ridiculing from the Tory leadership race after gaining just 16 votes. Liam Fox is eliminated
After coming fourth in the first round of voting,
to be the next leader of the Conservatives. Mr Crabb backs Theresa May instead. Stephen Crabb drops out of the race Michael Gove chose to stand against his fellow Leave campaigner Boris Johnson. Credit: PA from the Conservative leadership contest in the second round of voting. Michael Gove is eliminated
In an interview with The Times,
she would make a better prime minister than Theresa May because she has children. Andrea Leadsom appears to say Andrea Leadsom announces she is withdrawing from the Tory leadership race. Credit: ITV News against Jeremy Corbyn. Angela Eagle formally announces leadership bid of the Tory leadership race, saying she did not believe she had sufficient support. Andrea Leadsom pulls out as the new leader of the Conservative Party. Theresa May is officially declared
Theresa May becomes the 76th Prime Minister of the UK.
Theresa May leaves 10 Downing Street after the final Cabinet meeting with David Cameron as Prime Minister. Credit: PA