Scotland's First Minister Nicola Sturgeon said it was clear that people in Scotland saw their future as part of the European Union.
She made her view known in a statement issued after all 32 local authority areas north of the border voted for Remain in the EU referendum.
The Scottish vote contrasted with the overall UK vote to leave the EU, by a margin of 52% to 48%.
Ms Sturgeon said Scotland "has spoken - and spoken decisively".
Both London and Scotland voted strongly to stay in the EU but the Remain vote was undermined by poor results for them in the north of England.
Voters in Wales and the English regions backed Brexit in large numbers.
Ahead of the final outcome, Ms Sturgeon said: "Scotland has delivered a strong, unequivocal vote to remain in the EU, and I welcome that endorsement of our European status.
"And while the overall result remains to be declared, 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.
"We await the final UK-wide result, but Scotland has spoken - and spoken decisively."