Boris Johnson has resigned as leader of the Conservative party, and will remain prime minister until a new leader is found.
Mr Johnson's premiership has been dealt several blows this week, most notably the resignations of two of his most senior cabinet ministers who left in protest over his handling of the row over scandal-hit former deputy chief whip Chris Pincher.
But Tory grievances with Mr Johnson go back much further - as far as eight months at least.
It all began with a different row over standards in public life and Mr Johnson’s handling of the Owen Paterson lobbying scandal, before partygate allegations began to emerge.
How a damaging month unfolded for Boris Johnson:
Here is a timeline of the recent political crises that have engulfed the prime minister’s leadership.
November 3, 2021
The prime minister at first backed Mr Paterson after the House of Commons Standards Committee found him guilty of breaching rules on paid lobbying by MPs, and whipped Conservatives to support an overhaul of the standards system rather than suspend Mr Paterson from the House.
Just 24 hours later, Mr Johnson had U-turned in the face of public anger, but public attention was now already focused on standards, second jobs and sleaze in Westminster.
November 8, 2021
Less than a week later, former attorney general Sir Geoffrey Cox was in the spotlight for earning around £1 million a year as a barrister and using proxy votes to take part in Commons divisions while working in the British Virgin Islands.
November 22, 2021
Two contrasting speeches summed up Mr Johnson’s difficulties.
First, the prime minister himself stumbled over a speech to the CBI, losing his place, talking about a trip to Peppa Pig World and at one point imitating a car.
This was not significantly different from his usual oratorical style, but the reception was different.
News reports described the speech as “bizarre”, while other critics called it “shambolic”, “a mess” and “embarrassing”.
Then-Brexit minister Lord Frost delivered a speech which hinted at a discomfort with the direction Mr Johnson was taking, and resigned less than a month later.
Boris Johnson on his trip to Peppa Pig World
November 30, 2021
The first story of what would become “partygate” broke on November 30, with reports that Downing Street staff had held three gatherings almost a year earlier, when London was under lockdown restrictions.
The story initially made few waves and the Conservatives comfortably won the Old Bexley and Sidcup by-election two days later.
December 6, 2021
Conservative attempts to seize the initiative with a series of law and order announcements dubbed “crime week” ended with the party defending itself from allegations of law breaking.
First, a video obtained by ITV News of then-Downing Street press secretary Allegra Stratton showed her joking about parties during a press conference rehearsal.
She resigned a day later and Mr Johnson apologised at Prime Minister’s Questions, saying he was “furious” about the video and appointed Cabinet Secretary Simon Case to investigate the allegations.
Watch the full exchange between Ed Oldfield and Allegra Stratton in the mock televised press briefing
December 9, 2021
This day brought a £17,800 fine from the Electoral Commission, which found the Conservatives had improperly declared donations from Lord Brownlow towards the refurbishment of Mr Johnson’s Downing Street flat.
Lord Geidt, the prime minister’s adviser on standards, had previously cleared Mr Johnson of wrongdoing, but the Electoral Commission investigation uncovered WhatsApp messages that raised further questions about what the prime minister knew about the source of the donations.
December 14, 2021
From this point on, a steady drip of partygate stories provided a constant distraction for the government, including photographs of Mr Johnson at a Christmas quiz and sitting in the garden of Number 10 while staff apparently drank wine and chatted.
But December 14 also brought the first concrete sign of the prime minister’s waning authority as almost 100 of his backbenchers rebelled against new Covid-19 restrictions.
Two days later, the Liberal Democrats won the North Shropshire by-election, overturning Mr Paterson’s majority of 23,000 and securing a 6,000 majority of their own.
By the end of the week, Lord Frost had resigned and Simon Case had recused himself from the partygate investigation after claims his staff had had their own Christmas party emerged.
Sue Gray took over.
January 10, 2022
The new year brought little respite for the government.
Partygate continued with the leak of an email from Mr Johnson’s private secretary Martin Reynolds inviting 100 people to a party in Downing Street while the country was still in lockdown and claims Mr Johnson had attended the gathering himself.
Those claims were confirmed at Prime Minister’s Questions when Mr Johnson once again apologised and admitted attending the party, which he said he believed was a “work event”.
More Conservative MPs called for his resignation, pushing the party’s internal divisions further into the open.
Cracks within the party widened as Bury South MP Christian Wakeford defected to Labour on January 19. David Davis became the most senior Tory MP to publicly call for the prime minister to resign.
January 24, 2022
Mr Johnson suffered allegations that Islamophobia had contributed to Nusrat Ghani’s sacking as a minister, questions over his involvement in the decision to evacuate animals from Afghanistan, the resignation of BEIS minister Lord Agnew over a failure to tackle fraud and the announcement of a Metropolitan Police investigation into partygate.
A week later, Ms Gray published a censored version of her report into partygate that included several strong criticisms of Downing Street’s culture.
Mr Johnson attracted further criticism by falsely accusing Labour leader Sir Keir Starmer of failing to prosecute Jimmy Savile while director of public prosecutions.
Mr Johnson later “clarified” his remarks, saying he was referring to Sir Keir’s responsibility as head of the CPS rather than any decision he had personally made.
But those remarks prompted the resignation of long-time aide Munira Mirza and a public rebuke from Mr Sunak.
Ms Mirza’s resignation was followed by news that three top aides would quit Downing Street, including chief of staff Dan Rosenfield, director of communications Jack Doyle, and private secretary Mr Reynolds.
February 8, 2022
The prime minister’s reset continued with a mini-reshuffle, appointing Mr Pincher as deputy chief whip alongside new chief whip Chris Heaton-Harris after they ran a shadow whipping operation to shore up support for Mr Johnson as MPs sought to oust him over partygate allegations.
April 2, 2022
David Warburton, the MP for Somerton and Frome, had the Conservative whip withdrawn after allegations of sexual harassment and cocaine use emerged.
Mr Warburton is said to deny any wrongdoing.
On 29 June, he posted an update on his website stating that an investigation is underway. He wrote: "It has been immensely difficult not to speak out, but I have steadfastly adhered to the very strict rules of confidentiality and will continue to do so until the investigation concludes. Then, I will have much to say. I must say that I’m delighted that - finally - the investigation is underway."
On 21 June, the parliamentary commissioner for standards announced a probe into whether he breached the MP's code of conduct on three counts, including "paid advocacy".
Another update on his website posted on 6 July said due to a "sharp decline in his mental health", Mr Warburton had been readmitted to a psychiatric hospital. His office continues to function as normal, the statement said.
April 11, 2022
The next in a series of cases that renewed scrutiny of sleaze in Westminster came when Imran Ahmad Khan, the then-Tory MP for Wakefield, was found guilty of sexually assaulting a 15-year-old boy in 2008.
Khan, who maintains his innocence, was expelled from the Conservative Party and resigned, triggering a by-election that Labour won in June. Khan was jailed for 18 months in May.
April 12, 2022
Mr Johnson and Mr Sunak were fined for attending the prime minister’s birthday bash in Downing Street in June 2020, as part of a Metropolitan Police probe into alleged parties at the heart of the government during the pandemic.
Mr Johnson offered a “full apology” as opposition parties characterised him as the first prime minister to have been found to be in breach of the law.
April 21, 2022
Mr Johnson faced the prospect of a parliamentary investigation after MPs agreed to refer him over claims he lied to Parliament about Downing Street parties during lockdowns.
May 4, 2022
Neil Parish quit his seat in Tiverton and Honiton after admitting watching pornography in the Commons.
He said he accidentally viewed an X-rated video when browsing for tractors, before later doing so deliberately in the chamber.
Tiverton and Honiton was snatched by the Liberal Democrats in a June by-election, overturning a Conservative majority of more than 24,000.
May 17, 2022
An unnamed Conservative MP was arrested on suspicion of rape and sexual assault offences spanning seven years. Tory chief whip Mr Heaton-Harris urged the MP to stay away from Parliament but did not suspend the whip.
May 25, 2022
Ms Gray published her full report into lockdown-busting parties in No 10 and Whitehall, detailing events at which officials drank so much they were sick, sang karaoke, became involved in altercations and abused security and cleaning staff at a time when millions of people across the country were unable to see friends and family.
The prime minister said he took “full responsibility” for the scandal as calls for his resignation grew louder.
June 6, 2022
The government’s anti-corruption tsar resigned from his post and called on the prime minister to do the same, accusing him of breaking the Ministerial Code.
John Penrose, Conservative MP for Weston-super-Mare, said Mr Johnson had failed to address the Sue Gray report’s “very serious criticisms” of the leadership at 10 Downing Street.
June 6, 2022
The prime minister’s authority was damaged by a confidence vote that saw 41% of his MPs try to oust him.
Mr Johnson insisted he had secured a “decisive” victory as Tory MPs voted by 211 to 148 in support of him, but the scale of the revolt left him wounded.
June 15, 2022
Lord Geidt resigned as ethics adviser a day after telling MPs it was “reasonable” to suggest the prime minister broke the ministerial code by breaching lockdown laws.
He became the second ministerial interests adviser to resign during Mr Johnson’s three years in office.
Mr Johnson subsequently faced pressure to appoint a successor, with Downing Street still saying weeks later that it was considering how best to fill the role.
June 24, 2022
Defeat in two crunch by-elections and the subsequent surprise resignation of the Conservative Party co-chair pitched Mr Johnson’s leadership into a fresh crisis.
Cabinet minister Oliver Dowden said he and Tory supporters were “distressed and disappointed by recent events” and told the prime minister that “someone must take responsibility”.
The Tories lost their former stronghold of Tiverton and Honiton to the Liberal Democrats and Wakefield to Labour.
Mr Johnson vowed to “keep going” despite fresh calls for him to step down, including from former Conservative leader Michael Howard.
June 30, 2022
Chris Pincher dramatically resigned as deputy chief whip after allegedly groping two fellow guests the evening before at the Carlton Club, a Tory private members’ club in London.
Downing Street said Mr Johnson was not aware of any “specific allegations” about Mr Pincher when he appointed him to the whips office, but it emerged over the following days that he was told about allegations against him as far back as 2019.
July 5, 2022
Mr Johnson was forced into a humiliating apology over his handling of the Chris Pincher row after it emerged he had forgotten about being told of previous allegations of “inappropriate” conduct.
In the Commons, the atmosphere among Tory MPs was mutinous with critics lining up to condemn No 10’s handling of the matter.
Mr Sunak then quit as chancellor and Mr Javid stepped down as health secretary, both writing incendiary resignation letters.
July 6, 2022
Calls for the PM's resignation intensified after Mr Sunak and Mr Javid's departure triggered a wave of resignations.
Michael Gove, the levelling up secretary, was sacked as the pressure on Mr Johnson to stand down grew.
The resignation letters continued piling up as more MPs resigned from government, including Welsh Secretary Simon Hart.
Speaking to ITV's Peston, Attorney General Suella Braverman and former Health Secretary Matt Hancock called on Mr Johnson to step aside. Ms Braverman indicated her interest in "putting her name into the ring" for any future leadership contest.
July 7, 2022
Further resignations from senior Tories rolled in on Thursday morning. After less than 48 hours as education secretary, Michelle Donelan quit. Brandon Lewis also resigned as Northern Ireland secretary.
Downing Street made a number of new ministerial appointments in the morning, before Mr Johnson made a speech announcing his resignation as party leader in the afternoon.
His resignation came as more than 50 MPs resigned from government.
Want a quick and expert briefing on the biggest news stories? Listen to our latest podcasts to find out What You Need To Know