The veteran leftwing parliamentarian Denis Skinner, 87, lost to the Tories in Bolsover, the seat he has held since 1970 – a stunning reversal of fortune for the “beast of Bolsover”, who would have become father of the house.

The biggest scalp of the night so far is Jo Swinson, leader of the Liberal Democrats, who lost Dunbartonshire East to the SNP and later resigned as leader .

Exit poll predictions of the Labour “red wall” crumbling came to pass, with key seats such as Bishop Auckland falling to the Conservatives.

With 649 of 650 seats declared, the Tories have 364, followed by Labour on 203, SNP on 48, and Liberal Democrats on 11, the DUP on eight, Sinn Féin on six, Plaid Cymru on four, SDLP on two, and Greens and Alliance on one each. The Brexit party has zero .

The Conservative party has formally won the election. The party secured a majority by 5am after winning its 326th seat.

There were boos and shouts of “shame” from Labour supporters in Kensington as the Conservatives regained the seat from Emma Dent Coad in a 69% remain seat where the pro-EU vote was split with Lib Dem Sam Gyimah.

Labour took a hit in Stoke on Trent, with Gareth Snell and Ruth Smeeth losing their seats to Conservatives, and there was more disappointment for the party in Chingford and Woodfood Green, where Faiza Shaheen failed in her challenge to unseat Iain Duncan Smith.

Ed Miliband held his seat, but with a reduced majority and the Brexit party taking a large chunk of the vote.

The foreign secretary, Dominic Raab, held on in Esher & Walton but the Liberal Democrats came a close second.

Zac Goldsmith lost his seat to the Lib Dems in Richmond Park, one of the few positives for the party, as Chuka Umunna failed to take Cities of Westminster and London from the Tories and Luciana Berger, who also defected from the Labour party, failed to win Finchley and Golders Green, which was retained by the Tories.

Ex-Tories Anna Soubry and Dominic Grieve both lost their seats.