Summary
After 56 declarations, Labour has won 37 seats; the SNP nine; Liberal Democrats five; and Conservatives five
It was a triumphant night for Labour which took dozens of seats off the SNP, including all six in Glasgow
Scottish Tory leader Douglas Ross lost his bid to return to Westminster, describing it a "historically bad night" for the Conservatives
First Minister and SNP leader John Swinney described the result for his party as "very, very difficult and damaging".
SNP casualties included Kirsten Oswald, Tommy Sheppard, Alison Thewliss and high-profile MP Joanna Cherry
Labour's Ian Murray, who comfortably held his Edinburgh South seat, has been appointed as the new Scottish Secretary
One final seat - Inverness, Skye and West Ross-shire - has yet to be called and will go to a re-count on Saturday. The Lib Dems are expected to win after SNP candidate Drew Hendry conceded defeat
Live Reporting
Edited by Paul McLaren and Steven Brocklehurst
Ballot counting is all go across Scotlandpublished at 23:12 British Summer Time 4 July
'We're very pleased' says former Scottish Lib Dem leader Wallacepublished at 23:11 British Summer Time 4 July
23:11 BST 4 July"We're very, very pleased," says the former leader of the Scottish Lib Dems Lord Jim Wallace.
He says that if the exit poll is correct, "that's fantastic".
Wallace says he needs to put in the caveat that at the last election the exit poll prediction was no seats for the Lib Dems in Scotland, and they actually won four.
SNP fall appears to be more than anticipatedpublished at 23:04 British Summer Time 4 July
23:04 BST 4 JulyProfessor Sir John Curtice
Polling expertIn Scotland, it appears the SNP have suffered a more substantial reverse than was anticipated by most polls. Though the decline in the party’s support appears to be lower in places where a high proportion of people identify as Scottish rather than British.
The exit poll only has a small number of sampling points in Scotland. If the poll has even slightly overestimated Labour’s advantage over the SNP, the latter’s tally could end up being higher.
The forecast for the SNP - and for Scotland in general, where the exit poll is pointing to substantial Labour gains - must thus be treated with a great deal of caution.
Mortgage rises look to have hit Tory votepublished at 23:01 British Summer Time 4 July
23:01 BST 4 JulyProfessor Sir John Curtice
BBC polling expertIt appears the Conservatives have suffered heavily in places where more than a third of households have a mortgage - a reflection perhaps of the damage done by former prime minister Liz Truss’s "fiscal event".
Meanwhile, Labour’s vote is up more in seats where a large part of the population say they are in bad health - a measure of relative deprivation - and in places where more people voted Leave in the 2016 Brexit referendum.
Labour also seems to be advancing strongly in Scotland but less well in Wales, where they're in power.
Tories set for lowest vote share in party’s historypublished at 22:57 British Summer Time 4 July
22:57 BST 4 JulyProfessor Sir John Curtice
BBC polling expertThe Conservative share of the vote and seat tally, according to the exit poll, could be the lowest in the party’s history.
Its seat tally might be affected by the party’s vote falling more heavily in seats where they were previously strongest - a pattern that is largely because support for Reform has risen most there.
SNP quietly confident about north east seatspublished at 22:53 British Summer Time 4 July
22:53 BST 4 JulyAndrew Kerr
BBC Scotland political correspondentIt’s surprisingly quiet in the huge count centre in Aberdeen which covers the city and shire.
Party representatives are keeping an eye on the ballots as they’re being verified.
We’ll have two leaders here tonight - the SNP Westminster leader Stephen Flynn and the outgoing boss of the Scottish Conservatives, Douglas Ross.
Flynn’s SNP team are quietly confident that he can hold his Aberdeen South seat.
Despite dire Scotland-wide SNP predictions, they’re also relatively upbeat about the possibility of keeping Douglas Ross out of Aberdeenshire North and Moray East.
Support for independence still strong, says Salmondpublished at 22:51 British Summer Time 4 July
22:51 BST 4 JulyAlex Salmond says the "slaughter" of the SNP in the exit poll does not point to a lack of support for independence.
The former first minister says the SNP "did not even campaign" on independence.
He says: "In reality the support for independence is strong. It is the SNP who are weak. The independence case must now find new vehicles to move forward."
Will the SNP really drop to 10 seats?published at 22:47 British Summer Time 4 July
22:47 BST 4 JulyDavid Wallace Lockhart
Political correspondentScottish Labour were feeling confident, and the SNP dropping to 10 seats would certainly suggest they were right to feel that way.
But even some in Scottish Labour are questioning if the SNP will really face such big losses tonight - down 38 on the 2019 result.
SNP sources were talking about mid-teens of seats. The exit poll isn’t a million miles off.
The full picture isn’t even beginning to become clear yet, but it does feel like a difficult evening looms for the SNP
Screams of joy over exit poll at Edinburgh countpublished at 22:41 British Summer Time 4 July
22:41 BST 4 JulyPaul Ward
BBC Scotland NewsThere were screams of joy from Labour campaigners watching on a TV screen at the Edinburgh counting centre at Ingliston.
The SNP are defending three out of the five seats in the capital so activists are closely monitoring the start of counting at tables.
Lib Dem supporters said they were excited to see how the UK-wide exit poll breaks down in Scotland for them.
Scotland’s political party leaders spent significant amounts of time campaigning in the city over the past six weeks.
That had as much to do with their day jobs as any target seats. Holyrood continued to sit through the majority of the UK general election campaign, perhaps fitting for a contest that has been dominated by debate over devolved matters as much as those reserved to Westminster.
Sturgeon says this is a 'seismic' night for Labourpublished at 22:38 British Summer Time 4 July
22:38 BST 4 JulyMore from former SNP leader and First Minister Nicola Sturgeon...
"This is seismic for Labour," she says. "There's no getting away from that, it's a massive achievement for Keir Starmer.
"I think it will be interesting as the night progresses to see the extent this is driven by the Tory collapse as opposed to a Labour surge."
Labour make a return from the political wildernesspublished at 22:37 British Summer Time 4 July
22:37 BST 4 JulyLynsey Bews
BBC Scotland political correspondentOnce a dominant force in Scottish politics, the change in Labour’s fortunes here was slow and painful. The party was severely damaged by joining forces and with the Tories during the independence referendum in 2014, and by accusations its Scottish operation played to the tune of the London office.
After years cycling through leaders, and being pushed into third place in Scotland, it now looks like the party is making a return from the political wilderness.
The surge of UK Labour had heightened expectations ahead of this election, and senior party figures here have been keen to stress they’re taking nothing for granted. But now the votes have been cast, there is a real sense among supporters that they are on the brink of a big win north of the border.
The exit poll is shaky on seat predictions but it could be bad for SNPpublished at 22:35 British Summer Time 4 July
22:35 BST 4 JulyPhilip Sim
BBC Scotland political correspondentThere are big caveats around the exit poll, particularly when it comes to Scottish seats.
Often it has the big picture broadly right, but things get shakier when you drill down to seat-by-seat predictions.
But there are a few hours yet until we get real results, so here are some snippets…
The exit poll predicts that big SNP figures like Stephen Flynn and Joanna Cherry could be on their way out.
Flynn, the SNP’s Westminster leader, is actually predicted to fall to the Tories – the exit poll thinks they could come through in a three-way marginal.
As well as widespread Labour gains, the exit poll actually predicts the Tories picking up five seats from the SNP - which feels somewhat out of whack with the narrative up until now.
It may be best to wait up and see the results for real…
This could be even worse than the SNP fearedpublished at 22:32 British Summer Time 4 July
22:32 BST 4 JulyDavid Wallace Lockhart
BBC Scotland political correspondentNow we have the exit poll, some Scottish context…
Labour had been feeling confident, expect gains in central belt of Scotland.
The SNP had been talking about seats in the mid-teens.
If the exit poll comes to pass, 10 seats would be even worse than some of their bad expectations.
Labour to 'put Scotland at heart of government' - Sarwarpublished at 22:26 British Summer Time 4 July
22:26 BST 4 JulyAs the polls close, Scottish Labour leader Anas Sarwar thanked voters who had put their trust in his party.
“Labour is ready to put Scotland at the heart of government, to serve the people of Scotland and to deliver the change Scotland needs," he says.
He says Scottish voters had been failed for too long, and this election is about "change and improving the lives of the people of Scotland".
Sturgeon: This is not a good night for the SNP on those numberspublished at 22:22 British Summer Time 4 July
22:22 BST 4 JulySpeaking on ITV, former SNP leader Nicola Sturgeon says she believes the results of the exit poll will turn out to be "broadly right".
"This is not a good night for the SNP on those numbers," she says. "This is at the grimmer end of the expectations for the SNP, if the exit poll is right."
It looks like a 'good night for the Lib Dems' says Swinsonpublished at 22:21 British Summer Time 4 July
22:21 BST 4 JulyFormer Lib Dem leader Jo Swinson is also keen to stress the caveats around the exit poll but says "it looks like this is a really good night for the Lib Dems".
The exit poll gives her party 61 seats at Westminster.
Swinson says she hopes the Lib Dems will have won more seats in Scotland and made some headway.
A terrible result for the Conservatives, says Jackson Carlawpublished at 22:18 British Summer Time 4 July
22:18 BST 4 JulyScottish Conservative MSP Jackson Carlaw says the exit poll is a "terrible result" for the Conservative party.
Carlaw says that as a veteran of the 1997 election he has "been here before" and knows "every defeat is followed by recovery" which is what the Conservatives must now do.
He says most governments around the world who were in power during the pandemic have now lost power, reflecting an "appetite for change".
SNP's Angus Robertson says people 'absolutely fed up with Tories'published at 22:16 British Summer Time 4 July
22:16 BST 4 JulyThe SNP's Angus Robertson says that while the exit poll is just a prediction, the voters' "direction of travel" is clear.
He congratulates Labour's Ian Murray and his colleagues, before adding that they must deliver change.
"I think people were absolutely fed up with Conservative government and wanted to see them out, and that is definitely what has happened," he says.
Labour's Ian Murray says exit poll result 'astonishing'published at 22:13 British Summer Time 4 July
22:13 BST 4 JulyScottish Labour's Ian Murray tells BBC Scotland the exit poll is just that - a poll - and the margin of error in Scotland is "high".
Murray says that, if it is accurate, the result would be an "astonishing" one for Labour, giving Keir Starmer an overwhelming mandate to carry out his manifesto aims.
"If people have voted that way, it's a very, very strong reflection on what the Conservatives have done to this country," he says.
Exit poll suggests SNP are projected to have won only 10 seatspublished at 22:10 British Summer Time 4 July
22:10 BST 4 JulyThe exit poll, overseen by Sir John Curtice and a team of statisticians, is based on data from voters at about 130 polling stations in England, Scotland and Wales. The poll does not cover Northern Ireland.
The smaller sample size in Scotland means the Scottish situation will become clearer as the votes are counted.
The exit poll suggests the SNP are projected to have won only 10 seats, down from 48 at the 2019 general election.
If so, SNP leader John Swinney is facing a really tough night.
For Labour it's a huge victory, just short of Tony Blair's win in 1997.
However, this is just a prediction.