First Minister Nicola Sturgeon has welcomed Scotland's "unequivocal" vote to stay in Europe after all 32 local authorities delivered a vote for Remain.
But despite the vote, the country still faces having to exit the European Union (EU), after the Leave campaign won across the UK.
The result means Ms Sturgeon will now come under pressure to call a second independence referendum.
The SNP manifesto for May's Scottish Parliament election said there should be another ballot if there was a "significant and material" change in circumstances from the 2014 vote, such as Scotland being taken out of the EU against its will.
After all the results north of the border were declared, Ms Sturgeon said: "Scotland has delivered a strong, unequivocal vote to remain in the EU, and I welcome that endorsement of our European status."
Former first minister Alex Salmond told the BBC: "Scotland looks like it is going to vote solidly Remain. If there was a Leave vote in England, dragging us out the EU, I'm quite certain Nicola Sturgeon would implement the SNP manifesto."
Almost two thirds (62%) of Scots who voted had backed staying part of the EU, with 38% opting for Brexit.
Holyrood External Affairs Secretary Fiona Hylsop warned that a decision by the UK to quit Europe would have "consequences".
She told the BBC: "Scotland clearly and decisively voted to remain part of the European Union, 62 to 38 with an increased turn out form the Scottish Parliament elections barely six weeks ago.
"That sends a strong message, it's quite clear we see a different type of politics in Scotland, a different approach to constitutional affairs."
"I think people will be looking very closely at this result and looking at the prospects for Scotland and what is in the best interests of Scotland going forward.
"We're quite clear, the Scottish Government will protect Scotland's interests whatever the circumstances and we intend to do that."