Scotland resoundingly backed Remain in the EU referendum.
Every council area across the country voted to stay with Brussels, although turnout was the second lowest across all the regions of the UK.
The Western Isles and Shetland – who both rejected Europe in the 1975 referendum on membership – backed Remain.
Moray backed Brussels by the slimmest of margins, with just 122 votes separating Remain and Leave.
Former First Minister Alex Salmond warned Scotland could have another independence referendum now the country has been removed from the EU against the wishes of voters north of the border.
The ex-SNP leader said there had been “a very strong turnout in Scotland and it’s a very strong vote for Remain”.
He said: “Scotland voted solidly Remain.
“If a Leave vote in England drags us out the EU, I’m quite certain Nicola Sturgeon will implement the SNP manifesto.”
The SNP’s manifesto in the run-up to May’s Scottish Parliament election said Holyrood should have the right to hold a second independence vote if there is a “significant and material” change in circumstances from 2014.
Gordon MP Mr Salmond also claimed David Cameron was now a “lame duck”, suggesting the prime minister should resign.
But Ukip’s Scottish MEP, David Coburn, dismissed any suggestion of a second vote.
He said: “(Ms Sturgeon) won’t do it, because she’ll lose and she knows it.
“There’s no appetite in Scotland for a second referendum. We had it, they lost, they should live with it.”
Speaking at the count in Glasgow, he added: “I’d say on balance people in Scotland are unhappy with the European Union, a lot of them, a good percentage, are going to want to Leave.
“I think a lot of the SNP, ordinary members of the SNP, do not like the European Union and have voted for Leave whereas the leadership are completely out of touch, not only with their own membership but are also out of touch with the working people of Scotland.”
Last night, Labour sources criticised the SNP for running a “lacklustre” Remain campaign in Scotland.
Despite an 11th hour proclamation from the leaders of Holyrood’s five main parties urging people to vote Remain, turnout was only slightly higher than in Northern Ireland.
It was estimated that about 67% of those eligible to vote cast a ballot yesterday, up about 10% from the recent Scottish Parliament elections, but significantly down on the 2014 independence referendum.
In Glasgow, Scotland’s largest city, just 56% of eligible voters headed to the polls.
First Minister and SNP leader Nicola Sturgeon said: “Scotland has delivered a strong, unequivocal vote to remain in the EU, and I welcome that endorsement of our European status.
“The vote here makes clear that the people of Scotland see their future as part of the European Union.
“Scotland has contributed significantly to the Remain vote across the UK.
“That reflects the positive campaign the SNP fought, which highlighted the gains and benefits of our EU membership, and people across Scotland have responded to that positive message.
“Scotland has spoken – and spoken decisively.”