From shadow cabinet reshuffle to 'traingate' - how the Labour leadership race unfolded
From Jeremy Corbyn's first minor cabinet reshuffle in January to 'traingate', here is how the Labour leadership race unfolded.
January - Mr Corbyn's first minor cabinet reshuffle prompts three shadow ministers - Kevan Jones, Jonathan Reynolds and Stephen Doughty - to quit of their own accord.
June 10 - Mr Corbyn tells Channel 4's The Last Leg he is about "seven or seven and a half out of 10" in terms of enthusiasm about staying in the European Union.
June 23 - EU referendum polling day.
June 24 - Britain votes to leave the EU, despite Mr Corbyn and Labour campaigning to remain.
June 25 - Mr Corbyn faces accusations of failing to campaign hard enough during the EU referendum. He says he will stand again if a Labour leadership contest is held and vows to fight for his job. He rejects calls for a second referendum.
June 26 - Hilary Benn is sacked from the shadow cabinet by Mr Corbyn amid claims he was encouraging ministers to resign should Mr Corbyn ignore a vote of no confidence.
June 27 - By the end of the day 20 of Labour's shadow cabinet had either resigned or been sacked, including Owen Smith. Just seven shadow cabinet members remained. A further 27 shadow ministers also quit.
June 28 - Labour MPs overwhelmingly pass a vote of no confidence in Mr Corbyn, by 172 votes to 40. Mr Corbyn says he will not resign.
June 29 - Deputy leader Tom Watson fails to convince Mr Corbyn to stand down. At Prime Minister's Questions in the Commons, David Cameron tells Mr Corbyn: "For heaven's sake man, go." Reports emerge Angela Eagle will challenge Mr Corbyn.
June 30 - At the launch of a report into allegations of anti-Semitism in Labour ranks, Mr Corbyn's troubles deepen after MP Ruth Smeeth accuses him of creating a party that is "not a safe space for British Jews" and his own comments apparently comparing Israel with Islamic State are attacked by the Chief Rabbi.
July 7 - Mr Corbyn rejects fresh calls to stand down, telling Labour MPs they are free to stand against him. Mr Smith releases a statement calling on the party to give peace talks currently taking place between the leader's office, deputy leader Mr Watson and the unions "every chance to succeed".
July 9 - Mr Corbyn pleads for the party to "come together". Deputy leader Mr Watson pulls out of peace talks with the trade unions aimed at breaking the deadlock between Mr Corbyn and his MPs because "there is no realistic prospect of reaching a compromise" while the leader remained determined to stay in place.
July 11 - Ms Eagle insists she has not embarked on a political "suicide mission" as she launches her bid to topple Mr Corbyn.
July 12 - Labour's national executive committee rules that Jeremy Corbyn should automatically appear on the leadership ballot.
July 13 - Former shadow work and pensions secretary Mr Smith announces leadership challenge to Mr Corbyn.
July 19 - Ms Eagle steps aside from the leadership contest, making it a two-horse race between Mr Corbyn and Mr Smith.
July 28 - Mr Corbyn wins court battle which ensures he will definitely be on the ballot paper, without having to secure support from MPs. This decision had been challenged by Labour donor Michael Foster.
August 4 - Mr Corbyn and Mr Smith go head-to-head in the first live hustings debate
August 9 - Mr Watson says the party is at risk of being taken over by hard-left "Trotsky entryists"
August 11 - Mr Corbyn films a message while sat on the floor of a Virgin Trains carriage, complaining about the "ram-packed" service. The message will lead to a row later in the month.
August 12 - The Court of Appeal rubber stamps Labour's decision to exclude more than 100,000 members who had joined within the past six months from voting in the leadership contest.
August 15 - Mr Corbyn's team says 285 constituency parties are backing him for leader, compared to just 53 parties for Mr Smith.
August 17 - Mr Smith suggests peace talks could be held with Islamic State during a debate on the BBC.
August 23 - The "Traingate" incident unfolds over the film of Mr Corbyn on a commuter train service he dubbed "ram-packed", as operator Virgin Trains releases CCTV footage appearing to show there were seats he could have sat on.
August 24 - Mr Smith says he needs to be "slightly less colourful" with his choice of language after insisting he had not called Mr Corbyn a "lunatic".
September 4 - Reggae band UB40 endorses Mr Corbyn for leadership at launch of new culture policy.
September 6 - Labour MPs and peers back proposals to restore elections to select the shadow cabinet in a move viewed as a fresh blow to Mr Corbyn's authority.
September 14 - Mr Corbyn's team issues a roll call of Labour MPs it claims have abused the leader and his allies as it attacks Mr Smith for running a negative campaign.
September 17 - Mr Corbyn backs the return of elections to select Labour's shadow cabinet, but suggests members could be included in any votes.
September 21 - Ballot closes.
September 24 - Jeremy Corbyn is re-elected as Labour leader, securing 313,209 votes (61.8%) - more than 60,000 higher than the 251,417 (59.5%) he secured in 2015.