Election results 2017: Pictures of the election counts
- Published

Prime Minister Theresa May's decision to call a snap election has backfired as the Conservative Party fails to win a majority. The Tories are projected to get 318 seats, Labour 261 and the SNP 35.

Labour leader Jeremy Corbyn called on Mrs May to resign. Labour looks set to make 29 gains with the Tories losing 13 seats.

The SNP were down by 22 seats in a bad night for Nicola Sturgeon, with her party losing seats to the Tories, Labour and Lib Dems.

Green co-leader Caroline Lucas retained her Brighton Pavilion seat comfortably, with more than 30,000 votes.

Liberal Democrats leader Tim Farron celebrated beating Conservative party candidate James Airey, Independent candidate Mr Fishfinger and Labour candidate Eli Aldridge at the Westmoorland and Lonsdale constituency count in Kendal.

UKIP leader Paul Nuttall's campaign focused on fighting for what he called "real Brexit" but he failed to win the seat of Boston and Skegness.

Across the UK, ballot boxes began to arrive at the counting centres soon after polls closed at 22:00 BST. Newcastle managed to declare its result at 23:00 to beat Sunderland - the usual winners as first declarers.

The counting of votes has taken place throughout the night.

More than 2,700 candidates fought for 533 parliamentary seats in England, out of the UK's total of 650.

Earlier, as the polling stations closed, an exit poll suggested the Conservative Party would get 314 MPs to Labour's 266 when all the results were counted.

The BBC's Andrew Marr says no-one expected the Tory campaign to be "so faltering, so many missed steps" and for Theresa May to look so "unhappy".

By contrast, he said Jeremy Corbyn appeared to have had "a cracking campaign".

Election staff counted ballot papers at the Emirates Arena in Glasgow, as the exit poll suggested the SNP could be in for a disappointing night.

Party activists observed ballots being tallied at a counting centre in Hastings.

A total of 109 candidates stood across Northern Ireland and 1.2 million people were eligible to vote. Here, counting staff sort through ballots at the counting centre at the Titanic Exhibition in Belfast.

DUP supporters waited as counting got under way at the Eikon Exhibition Centre in Lisburn. Jim Shannon and Jeffrey Donaldson, both DUP candidates, won majorities in Strangford and Lagan Valley.

An official reacts as vote counters wait for ballot boxes to arrive at the Peter Paine Performance Centre for the constituency of Boston and Skegness.

A Labour Party representative takes notes of the counting of the ballots in Swansea.
All photographs are copyrighted.