Boris Johnson has won a decisive majority, on the back of a big swing from Labour to the Conservatives in Leave-voting Britain.
Yet north of the border the SNP dramatically almost swept the board.
According to the BBC’s latest forecast, the prime minister is set to win a majority of about 78 seats – the biggest Tory majority since 1987.
Meanwhile, at about 44%, the party’s share of the vote is likely to be at its highest since 1979, when Margaret Thatcher became prime minister.
Labour, in contrast, finds itself with little more than 200 seats, even fewer than the party won in its previous worst post-war result in 1983.
The difference between Leave and Remain seats
However, the swing in the Tories’ favour varied dramatically across the country.
In those seats where more than 60% of voters backed Leave in the 2016 EU referendum, the increase in Conservative support on average was 6%.
However, in those seats where more than 55% voted Remain, the party’s vote actually fell by three points.
In contrast, Labour’s vote fell on average by as much as 11 points in the most pro-Leave areas.
Its vote fell by only five points in the most pro-Remain ones.
Working-class and middle-class voters
This pattern had a clear impact on the geography of the election.
Support for the Conservatives rose by four points in the Midlands, the North East and Yorkshire – the regions of England that voted most heavily in favour of Leave.
In contrast, the party’s vote fell back by a point in London and the South East.
And in Scotland the party’s vote fell by as much as four points.
Conversely, Labour saw its vote fall by 12 to 13 points in the North East and Yorkshire, while it fell by only six or seven points in London and the South of England.
The result also saw Labour lose ground heavily in its traditional working-class heartlands.
Support for the party fell by 11 points in those constituencies with most voters in working-class jobs.
Its share of the vote fell by only seven points in those with most middle-class voters.
The bond between Labour and its traditional working-class base is now badly strained.
This was dramatically illustrated by Labour’s loss of many a seat in the north of England and the Midlands – places such as Ashfield, Bishop Auckland, and Workington which had never previously elected a Conservative MP in a general election.
An emboldened SNP
The success of the Conservatives in England and Wales was matched by that of the SNP in Scotland.
The party has won about 48 of the 59 seats north of the border, and 45% of the vote across Scotland as a whole.
It is a result almost as good as the party’s historic performance in the 2015 election.
And, in a country that voted in favour of Remain, it is likely to embolden the SNP in their pursuit of a second independence referendum.
That is a ballot to which the Conservatives are strongly opposed. So, a constitutional clash between the Scottish and UK governments seems likely.
Liberal Democrat losses
One of the SNP’s biggest scalps was the Dunbartonshire East seat of Liberal Democrat leader Jo Swinson – a defeat that capped a miserable night for the Liberal Democrats.
Despite advancing more strongly in pro-Remain areas, the party seems likely to end up with no more than 14 seats.
This would be six fewer than were taking the party whip when the election was called.
None of the many MPs who defected to the party during the last Parliament have been able to retain their seats.
Fewer than half backed Brexit parties
The announcement of the election was greeted with concern about the level of turnout, for a ballot held just a fortnight before Christmas.
In the event, about 67% of voters made it to the polls – just two points down on 2017.
Turnout fell most markedly in seats where Labour are relatively strong, suggesting that some of those who usually support the party opted to stay at home.
The Conservatives’ success means that Britain will now leave the EU at the end of January.
However, it seems unlikely to end the debate about Britain’s relationship with the EU.
The country’s divisions over Brexit were exposed in the very different swings across the country.
Meanwhile, at about 46%, fewer than half of voters backed the Conservatives or the Brexit Party – the parties in favour of proceeding with Brexit without another referendum.
This is a point to which opponents of Brexit are likely to point in the weeks and months to come.
But for now at least, the day clearly belongs to Boris Johnson.
About this piece
This analysis piece was commissioned by the BBC from an expert working for an outside organisation.
He worked on this piece with: Professor Stephen Fisher, Oxford University; Professor Rob Ford, University of Manchester; Professor Jouni Kuha, London School of Economics; Jon Mellon, University of Manchester; and Patrick English, University of Exeter.
Edited by Duncan Walker