In pictures: How Labour’s landslide unfolded

Sir Keir Starmer has led Labour to victory in the general election and is now prime minister after securing a majority in the House of Commons.

Labour leader Sir Keir Starmer speaks to supporters in Downing Street after becoming prime minister - 5 July 2024

Speaking outside 10 Downing Street, he promised a government of service: "The work of change begins immediately."

Mr Starmer becomes only the fourth Labour leader to win a general election since World War Two.

Sir Keir Starmer meets King Charles at Buckingham Palace - 5 July 2024

After meeting the King at Buckingham Palace, he was greeted by flag waving supporters in Downing Street and clapped by civil servants as he entered Number 10.

Supporters react as Keir Starmer arrives at 10 Downing Street - 5 July 2024 Sir Keir Starmer and wife Victoria wait to enter 10 Downing Street - 5 July 2024 Keir Starmer and his wife Victoria inside 10 Downing Street - 5 July 2024

While it was a brilliant night for Labour, the landslide victory fell just short of the 419 seats that Tony Blair won in 1997.

A member of the staff counts ballot papers in Clacton-on-Sea - 4 July 2024 Counting staff sort through ballot papers at the counting centre at Emirates Arena in Glasgow, Scotland - 4 July 2024

The race to be the UK's fastest election count was won by Houghton and Sunderland South in the North East, where Labour's Bridget Phillipson came out on top.

A member of the staff carries a box full of ballot papers at Silksworth Community Pool, Tennis and Wellness Centre in Sunderland - 4 July, 2024 Labour shadow education secretary Bridget Phillipson celebrates with her supporters in the Houghton and Sunderland South - 4 July 2024

It was a terrible night for the Conservatives, who ended up with the lowest number of seats in the party’s history. Several senior figures, including Liz Truss and Jacob Rees-Mogg, lost their seats.

Rishi Sunak was re-elected in Richmond and Northallerton, but later said he would resign as Conservative Party leader.

Speaking outside Downing Street for the last time, he said: "I have heard your anger, disappointment and I take responsibility for this loss."

Rishi Sunak speaks outside Downing Street after election loss - 5 July 2024 Rishi Sunak and his wife leaving 10 Downing Street - 5 July 2024
Liz Truss during the count for the Norfolk South West seat - 5 July 2024 Jacob Rees-Mogg with Barmy Brunch from the Monster Raving Loony Party - 5 July 2024

The Liberal Democrats benefitted from a collapse in Tory support and had a great night. Despite an action-packed campaign, Ed Davey still had enough energy to celebrate in central London in the early hours of Friday morning.

Liberal Democrat leader Sir Ed Davey at the London Art Bar in central London - 5 July 2024 Liberal Democrat leader Sir Ed Davey at the London Art Bar in central London - 5 July 2024

Nigel Farage, the leader of Reform UK, was another one to benefit from voters fleeing the Conservatives as he became an MP in Clacton at the eighth time of trying. The party won five seats in total.

Reform UK leader Nigel Farage gives a victory speech at Clacton Leisure Centre in Essex - 5 July 2024 Nigel Farage gestures as he walks after winning his first seat in parliament during the UK election in Clacton-on-Sea - 5 July 2024

It was also a successful night for the Green Party as they picked up four seats, including Brighton Pavilion where Siân Berry was elected to replace Caroline Lucas, the party's former leader.

Sian Berry and Green Party supporters celebrate after winning Brighton Pavilion - 4 July 2024

Another veteran politican celebrating was former Labour leader Jeremy Corbyn, who was re-elected in Islington North as an independent candidate to loud cheers from supporters in the room.

Jeremy Corbyn speaks following his election victory in Islington, England - 5 July 2024 Supporters of Jeremy Corbyn react as the result is declared in Islington, England - 5 July 2024

In Scotland, Labour leader Anas Sarwar had a smile on his face after making big gains at the expense of the SNP and its leader John Swinney.

Scottish Labour Leader Anas Sarwar poses with Maureen Burke after declaration results at Emirates Arena - 5 July 2024 Scottish Labour supporters celebrate after the party scored victory in exit polls at declaration for Glasgow North East - 5 July 2024 Scottish First Minister and SNP leader John Swinney reacts at the count at the Ice Hall in Perth, Scotland - 5 July 2024 Alison Thewliss of the SNP reacts after losing her seat for Glasgow Central at Emirates Arena - 4 July 2024

There were nearly 100 parties standing in constituencies across the UK in this election, including the Monster Raving Loony Party and Count Binface, a self-described "intergalactic space warrior".

Members of the Monster Raving Loony Party at the count in the Richmond and Northallerton constituency - 4 July 2024 Count Binface speaks to journalists during the count for the Richmond and Northallerton constituency - 5 July 2024