Barra's ballot boxes arrive by boatpublished at 00:42 British Summer Time 9 June 2017
Ballot boxes from the Isle of Barra are taken to the mainland by boat for counting.
First Minister Nicola Sturgeon concedes indyref2 a factor in the election
The SNP ends the night with 35 seats, the Tories have 13, Labour 7 and the Lib Dems 4
Former SNP leader Alex Salmond and the SNP's Deputy leader Angus Robertson lose their seats to the Conservatives
Scottish Conservative leader Ruth Davidson says the result shows indyref2 "is dead"
Election ends in hung Parliament: Conservatives set for 319 seats, Labour 261
Tories to form UK government with DUP to 'provide certainty' and keep country 'safe'
BBC Scotland News
Ballot boxes from the Isle of Barra are taken to the mainland by boat for counting.
Ballot box gamble failure
Tory MSP Liz Smith tells BBC Scotland she is "quite optimistic" that Ian Duncan will win the seat of Perth and North Perthshire for the Scottish Conservatives.
He has been campaigning to take the seat from the SNP's Pete Wishart who won the seat in the last general election, with a majority of more than 9,000.
Aileen Clarke
in Glasgow
Stewart McDonald 'reasonably confident ' he will hold Glasgow South for the SNP.
Pauline McLean
in East Lothian
Sources at East Lothian suggesting Labour first, Conservatives second, SNP third.
Labour's Iain Gray says it is too early to call but voters in East Lothian have "had enough" of referendums.
Kenneth Macdonald
in Caithness
Caithness, Sutherland and Easter Ross: There are whispers here that the pro-Union parties may have cancelled each other out and let the SNP hold on. Let's see.
Looking ahead to a "night of surprises"
Nick Eardley
BBC Scotland Westminster correspondent
Labour's mood in Scotland is getting more optimistic. Sources say they are now confident of taking new seats - but not naming any yet.
Philip Sim
BBC Scotland political reporter
Rutherglen & Hamilton West declaring quite soon. SNP majority of 17.3%, but Labour had talked about strong results from early counting there
Theresa May's gamble may have backfired.
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’.
But she can always do something naughty.
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’.
Ruth Davidson is feeling confident however.
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’.
Neil's take on Willie Rennie.
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’.
Reevel Alderson
BBC Scotland Home Affairs correspondent
Joan McAlpine, SNP MSP for the South of Scotland, says she doubts the accuracy of the exit poll as its Scottish sample is small.
But she says even if it were correct, the SNP will still have won the election in Scotland and the Tories who attempted to turn the poll into a vote on Indyref2 would have been defeated.
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’.
Fiona Walker
at the count in Paisley
As the night goes on, the atmosphere is changing. To begin with, everyone was talking about Mhairi Black, the youngest MP, retaining her seat.
The exit poll came in, with all the caveats, and in Paisley and Renfrewshire South, it suggests that Labour could take it from the SNP.
We are watching these piles very closely indeed. What's happening on the tables behind me is that - for Alison Dowling of Labour and Mhairi Black of the SNP - the piles are going up neck and neck.
There are observers around the room watching closely.
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’.
Journalist and pundit David Torrance said Theresa May's credibility will be hit.
He said: "The surprising thing in this election was the absence of chatter about Brexit which after all was the whole premise of the election being called. There was very little discussion of that at all, and remember that the whole point of this was to boost the Prime Minister’s authority and strengthen her hand going into negotiations.
"Even if she ends up with a slight overall majority or the largest party, her authority is shot. Perhaps she’ll be saved by the sheer turmoil of having a Tory leadership election before those negotiations start but she emerges from this considerably weakened.
"In Scotland, Indyref 2 was the big dynamic. Most people I spoke to on the ground found that, particularly in seats like Moray where you would expect Brexit to be a factor but it has been surprisingly absent."
Iain Macwhirter, a journalist with The Herald, said that the exit poll may indicate that the Labour manifesto "captured the imagination" of SNP voters who had supported Labour in the past.
He told the BBC Election cafe: "It caused a lot of them to rethink their allegiance and wonder whether really it made sense to vote SNP for Westminster when the SNP hasn't got a chance of forming a government there. Why not vote for Labour if they're in with a shout?
"If the SNP has lost 22 seats, if it's down to 34, that will be a very significant blow to Nicola Sturgeon.
"But the irony is, she could end up having the balance of power in Westminster at the same time."
SNP suffer significant losses but remain largest force across Scotland
Nick Eardley
BBC Scotland Westminster correspondent
Sources from all parties - for now - are playing down the idea the SNP could lose 22 seats in Scotland, as our exit poll suggests.
But they are trying to work to figure out where the SNP could be vulnerable.
Senior Scottish Tories think early tallies are looking good for them based on their original targets.
Scottish Secretary David Mundell thinks his party are within reach of winning all three seats in the south of Scotland.
In Perth and North Perthshire party sources say things are looking good for them. A victory there would be huge for the party - though they had little chance when the election was called.
Sources in Moray say the race between Tory Douglas Ross and the SNP's deputy leader Angus Robertson is close.
Scottish Labour are playing down the idea they could make significant gains in Scotland, despite suggestions of an increase in the party's vote. They are confident in Edinburgh South and optimistic in East Lothian. They've also suggested they are doing better in Rutherglen and Hamilton West. But more widely the party thinks SNP majorities may be too big.
The Lib Dems are positive about Edinburgh West and East Dunbartonshire, two of their three targets in Scotland. North East Fife, where the party thinks it is in with a chance of unseating the SNP's Stephen Gethins, is close, sources say.
But with all this, it's early in the night. A long way to go....
Morag Kinniburgh
BBC Scotland
Edinburgh South - Labour's Sheila Gilmore says "we've worked very hard"
Edinburgh West - Lib Dems' Alex Cole Hamilton says it is "too close to call"
Brian Taylor
BBC Scotland Political Editor
Three results in across the UK (none Scottish). Each Labour victories. But each with rising Conservative support, apparently contrary to the exit poll.
Another point. UKIP vote sharply down, even in Leave-voting Sunderland.
Are they being squeezed - or is the conclusion that it is job done on UKIP's principal objective?