The final constituency, Kensington in London, will declare later today after three recounts failed to establish a winner, although Labour are rumoured to have gained the seat.
No formal coalition will be put in place, but Theresa May visited Buckingham Palace at 12.30pm today to seek permission from the Queen to form a government.
The Conservatives, who remain the largest party, won 318 seats, eight short of the 326 needed for an overall majority. A deal with the DUP, who won ten seats, will give them a working, if delicate, majority.
On a night full of shocks, Jeremy Corbyn defied the odds to secure a bigger number of votes than Tony Blair managed, even in Labour’s landslide victory in 2001. The party finished the night with 161 seats (excluding Kensington).
The Labour leader’s 12.8 million votes is also more than Blair managed in 2005, which many of putting down to a high youth turnout, although official figures have not been released.
The result is a remarkable turnaround the party, which was 20 points behind in the polls when the election campaign started.
Just a few weeks ago, the Conservatives, who lost 12 seats, were hopeful of a 60 or 70-seat parliamentary majority.
Elsewhere, the SNP lost 21 of the 56 seats it won in 2015, including those of Alex Salmond and Angus Robertson. The Conservatives made gains in Scotland, increasing their seats from one to 13.
Ukip failed to win a single seat, prompting the party’s leader Paul Nuttall to resign.
As ever, the election map looks predominantly blue, with Labour supported concentrated in large towns and cities.
In total, the Conservatives won 13,650,918 votes, compared to Labour’s 12,858,644.