Summary
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'
Live Reporting
BBC Scotland News
Result - SNP hold Na H-Eileanan An Iarpublished at 02:27 British Summer Time 9 June 2017
Result - SNP hold Glenrothespublished at 02:24 British Summer Time 9 June 2017
02:24 BST 9 June 2017BreakingResult - Tories win Moray from SNPpublished at 02:23 British Summer Time 9 June 2017
02:23 BST 9 June 2017BreakingThe Portillo momentpublished at 02:21 British Summer Time 9 June 2017
02:21 BST 9 June 2017Brian Taylor
BBC Scotland Political EditorAnd so the Portillo moment occurs.
Douglas Ross wins Moray for the Tories.
However the SNP perform, this will colour their night.
They have lost their deputy leader and a strong Westminster performer, Angus Robertson.
Tories take Moray from SNP Westminster leader Angus Robertsonpublished at 02:19 British Summer Time 9 June 2017
02:19 BST 9 June 2017BreakingThe SNP's Westminster leader Angus Robertson has been defeated by the Scottish Conservatives in Moray
Labour believe they will take Glasgow North Eastpublished at 02:17 British Summer Time 9 June 2017
02:17 BST 9 June 2017Aileen Clarke
Labour are clapping at the Emirates Arena. They believe they have taken Glasgow North East.
Pro-Union parties putting on votespublished at 02:16 British Summer Time 9 June 2017
02:16 BST 9 June 2017Brian Taylor
BBC Scotland Political EditorSame pattern in the Western Isles. The SNP returned with pro-Union parties all putting on votes.
SNP hold Western Islespublished at 02:16 British Summer Time 9 June 2017
02:16 BST 9 June 2017The SNP's Angus MacNeil has held Na H-Eileanan An Iar (the Western Isles) with a majoirty of 1,007 over Labour.
Recount requested in Perth and North Perthshirepublished at 02:13 British Summer Time 9 June 2017
02:13 BST 9 June 2017Graham Stewart
in PerthThere's been request for a recount in Perth and North Perthshire and returning officer has accepted.
Conservatives say they called the recount here - 36 votes in it!
Result - SNP hold Falkirkpublished at 02:12 British Summer Time 9 June 2017
02:12 BST 9 June 2017BreakingSNP win, with reduced sharepublished at 02:10 British Summer Time 9 June 2017
02:10 BST 9 June 2017Brian Taylor
BBC Scotland Political EditorAgain, in East Kilbride, pro-Union parties all put on votes. SNP won, with a reduced share.
Result - SNP hold East Kilbridepublished at 02:10 British Summer Time 9 June 2017
02:10 BST 9 June 2017BreakingMhairi Black: Westminster is archaic but we have to get involvedpublished at 02:08 British Summer Time 9 June 2017
02:08 BST 9 June 2017Mhairi Black, who has been re-elected to represent Paisley and Renfrewshire South, told BBC Scotland she was looking forward to returning to Westminster.
"I make no secret of the fact that I find Westminster archaic, so long as it's our political institution, we have to get involved in it," she said.
"I'm glad to be re-elected to go back down and continue to batter into whoever is in government that austerity is not working, it's not benefiting people's lives whatsoever.
"The people it is benefiting, you could argue, are the one's who need it least."
SNP hold Paisley and Renfrewshire Northpublished at 02:07 British Summer Time 9 June 2017
02:07 BST 9 June 2017BreakingThe SNP have held Paisley and Renfrewshire North with a majority of 2,613
SNP hold East Kilbride, Strathaven and Lesmahagowpublished at 02:06 British Summer Time 9 June 2017
02:06 BST 9 June 2017BreakingThe SNP have held East Kilbride with a majority of 3,866
Only three seats change hands so farpublished at 02:05 British Summer Time 9 June 2017
02:05 BST 9 June 2017Brian Taylor
BBC Scotland Political EditorOnly three seats have changed hands so far - and two are in Scotland.
SNP hold Dundee Westpublished at 02:04 British Summer Time 9 June 2017
02:04 BST 9 June 2017BreakingThe SNP have held Dundee West with a majority of 5,262
SNP hold Dundee Eastpublished at 02:03 British Summer Time 9 June 2017
02:03 BST 9 June 2017BreakingResult - Conservatives gain Angus from SNPpublished at 02:01 British Summer Time 9 June 2017
02:01 BST 9 June 2017BreakingResult - SNP hold Kilmarnock and Loudounpublished at 01:59 British Summer Time 9 June 2017
01:59 BST 9 June 2017Breaking