Night in a nutshell...published at 04:59 Greenwich Mean Time 13 December 2019
It's hard to summarise a night with so many news lines, so here's some of the most crucial bits for you:
The Conservatives have 365 MPs, Labour 203, the SNP 48, Liberal Democrats 11 and the DUP eight
Sinn Fein have seven MPs, Plaid Cymru four, the SDLP have two; and the Green Party and Alliance Party one each
Boris Johnson's party has the largest Tory majority since 1987
He says he will repay the trust of voters and lead a "people's government"
He has been to see the Queen and speaking outside No 10 urged the UK to "unite" and "everyone to find closure and to let the healing begin"
Jeremy Corbyn says he did "everything he could" to win and will stand down as leader early next year
Jo Swinson loses her seat, stands down as Liberal Democrat leader, and urges her party to "regroup"
Nicola Sturgeon says the PM has "no right" to block another Scottish independence referendum
There will be a minor reshuffle on Monday and the Brexit bill will go before MPs next Friday
Chris Lansdown and Dulcie Lee
It's hard to summarise a night with so many news lines, so here's some of the most crucial bits for you:
BBC Radio 4
Labour's shadow education secretary Angela Rayner was re-elected in Ashton-under-Lyne but with a reduced majority.
She says she still backs Labour's campaign.
"I still believe that the Labour manifesto was the best and the Conservatives know that and they need to reflect upon that," she says.
"While they may have a majority regarding what's happened around Brexit, there are still some serious concerns around our public services and the cuts they face."
Asked whether she'd be a candidate to replace Jeremy Corbyn, she said: 'I'm just pleased to be the Labour member for Ashton-under-Lyne and I'll reflect on what's happened over this evening and see where we end up as a Labour Party."
The BBC's Chris Gibson listens to Yvette Cooper - once of the Labour front bench but pushed to the backbenches by the Corbyn revolution.
It sounds like she might be considering a move back forwards again...
Allow Twitter content?
This article contains content provided by Twitter. We ask for your permission before anything is loaded, as they may be using cookies and other technologies. You may want to read Twitter’s cookie policy, external and privacy policy, external before accepting. To view this content choose ‘accept and continue’.
Lucy Manning
BBC News Special Correspondent
You can look at this seat and say this is a big failure of the Remain alliance.
The constituency voted 70% Remain, yet the Tory candidate who voted Leave has won this seat.
Sam Gyimah who defected from the Conservatives to the Lib Dems ran here and that split the Remain vote.
There were real recriminations as the result was announced and some Labour activists were heckling the Lib Dem candidate shouting "shame, shame".
BBC London political editor speaks to the winner...
Allow Twitter content?
This article contains content provided by Twitter. We ask for your permission before anything is loaded, as they may be using cookies and other technologies. You may want to read Twitter’s cookie policy, external and privacy policy, external before accepting. To view this content choose ‘accept and continue’.
Reality Check
So if we do end up with a Conservative majority government, what promises did the party make, and when did they say they would deliver them?
The party has promised to bring back the Brexit Withdrawal Agreement Bill (that’s the deal on the terms of leaving the EU) to Parliament before Christmas and to leave the EU by the end of January 2020.
They say they will negotiate a free trade agreement with the EU in time to come into force in 2021. It usually takes years to negotiate a free-trade deal but, allowing time to have everything agreed, this would have to happen within five months.
By January of the same year they will also roll out an Australian-style points-based immigration system. The exact shape of this system still remains to be seen.
The party has pledged to change the sentencing rules for those convicted of terror offences within 100 days and for perpetrators of violent or sexual offences that carry a life sentence at some point down the line.
By the end of 2022 they say they will have increased the number of police officers by 20,000, pushing numbers almost back up to 2010 levels.
And, also by 2022, they say they will create 10,000 more prison places. The prison system is currently around 8,000 people over safe capacity.
The Conservatives have pledged to have 50,000 more nurses working in the NHS by 2024-25 (by recruiting from the UK and overseas, and by making sure nurses who would otherwise have left the profession stay working for longer). They also promise 6,000 more GPs in England by 2024-25.
One of the more contentious claims has been the promise that the Conservatives will build 40 new hospitals, given money has only been provided to refurbish six - with seed funding for 34 to make plans. They say they will do this over the next 10 years which takes them past this parliamentary term.
Laura Kuenssberg
BBC political editor
The results show that Boris Johnson's gamble of trying to win this election by turning red to blue has paid off.
You can sum up the extent of the Conservative's victory by saying the Tories have won in Warrington, Stoke-on-Trent Central and Blyth Valley but they have also won in Kensington.
There seems to be a clear pattern emerging in the way that strong Leave and strong Remain areas are voting.
Labour are performing poorly in both areas, with their vote share down by 10.9% in strong Leave areas and 6.3% in strong Remain areas.
The Conservatives are also down in strong Remain areas, but by less than Labour, and they’re up by 6.1% in strong Leave areas.
We classify strong Leave and strong Remain areas as constituencies where more than 60% of the electorate voted Leave or Remain in the EU referendum.
Allow Twitter content?
This article contains content provided by Twitter. We ask for your permission before anything is loaded, as they may be using cookies and other technologies. You may want to read Twitter’s cookie policy, external and privacy policy, external before accepting. To view this content choose ‘accept and continue’.
The Conservatives have won back Kensington by 150 votes.
The hyper-marginal seat, having been gained by Labour in 2017 with only a 20-vote majority, was seen as a target for three main national parties.
Labour's Emma Dent Coad, the sitting MP, won 16,618 votes.
But the Conservatives' candidate, Felicity Buchan, won 16,768 votes.
The three-horse race has been contentious, with Mrs Dent Coad reporting her Liberal Democrat opponent, Sam Giymah, over “inaccurate and dangerous” allegations she had been involved in choosing the cladding that set alight in the Grenfell Fire.
Mr Gyimah, a former Tory minister who defected to the Lib Dems over Brexit, won 9,312 votes.
Former Tory Dominic Grieve, who fought many battles against Brexit in the Commons, has lost his seat.
He was once the party's Attorney General but was booted out by Boris Johnson earlier this year after he backed a bill to try to stop a no-deal Brexit.
Mr Grieve ran as an independent for his seat of Beaconsfield and won the support of more than 16,000 voters.
But he was beaten by the new Tory candidate Joy Morrissey, who won with 32,477 votes.
Sky's Beth Rigby says he gave a warning about the future of the United Kingdom, with England and Scotland seemingly set on different paths...
Allow Twitter content?
This article contains content provided by Twitter. We ask for your permission before anything is loaded, as they may be using cookies and other technologies. You may want to read Twitter’s cookie policy, external and privacy policy, external before accepting. To view this content choose ‘accept and continue’.
The Green Party has held on to their one seat, with Caroline Lucas winning Brighton Pavilion with an increased majority.
In her acceptance speech, she says her "pride" at winning the seat is "tinged with huge sadness and, frankly, deep anger - sadness that so many people who desperately need a progressive government on their side won't get the social justice they need".
And she expresses anger "that our political system is so badly broken".
"Our electoral system is rotten to the core," she adds.
Former Prime Minister Theresa May says she is "very pleased at the majority" her successor appears to have secured.
She held her own seat of Maidenhead too.
Asked how he managed a majority when she didn't, she says: "At this election people were faced with a very clear choice on whether they wanted to ensure Brexit was delivered and knew if a Conservative majority government got in they would deliver Brexit.
"This election was about ensuring we could get over this deadlock in Parliament, get Brexit done and move on."
And can Mr Johnson get a trade deal with the EU by the end of next year?
"Yes," says Mrs May. "Because actually a lot of work on that has already been done, both in the original set of negotiations and in the political declaration.
"With the will on both sides to ensure we can now deliver, yes it is possible."
Our piece on what it really means to "get Brexit done" could explain why some think that timeable very optimistic.
Professor Sir John Curtice
Polling expert
There are four results left to declare in Scotland where the outcome appears to be uncertain.
But even if the SNP failed to pick up any of these 4 seats it would appear that the should at a minimum win 50 seats, and might still win as many as 54.
It looks as though Ruth Davidson will have to fulfil her promise to go skinny-dipping on Hogmanay...
"I was expecting a good performance," says SNP leader Nicola Sturgeon, but she adds "I think the results we are seeing somewhat exceed the expectations I had.
"Scotland has sent a very clear message - we don't want a Boris Johnson government, we don't want to leave the EU.
"The results across the rest of the UK are grim but underlines the importance of Scotland having a choice.
"Boris Johnson has a mandate to take England out of the EU but he must accept that I have a mandate to give Scotland a choice for an alternative future."
Allow Twitter content?
This article contains content provided by Twitter. We ask for your permission before anything is loaded, as they may be using cookies and other technologies. You may want to read Twitter’s cookie policy, external and privacy policy, external before accepting. To view this content choose ‘accept and continue’.
Chris Page
BBC News NI Political Correspondent
Here in Belfast, Sinn Fein supporters are cheering loudly. They cannot really believe their man John Finucane has beaten the DUP's Nigel Dodds by almost 2,000 votes.
Across Northern Ireland, as things stand, nationalists look set to outnumber unionists for the first time - with nine MPs to eight (and one for the cross-community Alliance Party).
So the result of Dodds losing is a seminal one.
It's a very uncomfortable night for the DUP and it looks like it's going to be a poor night for unionists in general.
A serious flurry in the last hour or so with some big results. Let's try to sum up a bit:
Prime Minister Boris Johnson won a fairly comfortable and unsurprising majority of 7,210 in his constituency of Uxbridge.
Allow Twitter content?
This article contains content provided by Twitter. We ask for your permission before anything is loaded, as they may be using cookies and other technologies. You may want to read Twitter’s cookie policy, external and privacy policy, external before accepting. To view this content choose ‘accept and continue’.