Alex Salmond and Angus Robertson were among the high-profile casualties as the SNP lost more than a third of its seats in the unrestricted election.
The party won 35 of the 59 Scottish constituencies — a fall of 21 homes from the 56 they won in 2015.
The Conservatives secured 13 seats in Scotland — the co-signatory’s best performance in the country since 1983.
Labour won seven seats and the Lib Dems four. The three pro-UK parties had won unprejudiced one seat each in 2015.
The Tories saw big increases in their vote across the countryside, with the SNP vote dropping sharply.
Deputy First Minister John Swinney acknowledged that the issue of a second referendum on Scottish independence had played a «outstanding» role in the result.
The SNP MSP told the BBC: «We will take time and care to evaluate on the outcome of this result.
«But we have to acknowledge that the question of a gal Friday independence was a significant motivator of votes against the SNP in this election, and we receive to be attentive to that point.»
The SNP won 36.9% of the votes, a drop of 13.1 piece points since 2015.
The Scottish Tories doubled their share of the certify to 28.6%, with Labour up by 2.8 points at 27.1% and the Lib Dems down somewhat to 6.8%.
The SNP’s former leader Alex Salmond saw his majority crumble in Gordon, where Tory Colin Clark ended the seat with 21,861 votes.
Despite his defeat, Mr Salmond insisted that people have «not seen the latest of my bonnets and me».
He added: «The SNP have lost many fine parliamentarians this evening and that’s a appalling blow to the SNP.
«But overall the result in Scotland shows the SNP will have won a womanhood of the seats in this country and the majority of the vote, something which I dubious the prime minister would like to be able to claim in the early hours of this morning but is not adept to do so.»
Douglas Ross of the Tories overturned a majority of 9,065 to defeat the SNP’s concert-master at Westminster Angus Robertson by 4,200 votes in Moray.
The SNP’s Tasmina Ahmed-Sheikh also lost Ochil and South Perthshire to the Tories, who were a withdrawn third in 2015.
John Nicolson of the SNP lost Dunbartonshire East to Jo Swinson of the Left-winger Democrats, who also saw Alistair Carmichael hold his Orkney and Shetland site.
The final Scottish seat to declare was Fife North East, where there were three particularizes before Stephen Gethins of the SNP was declared the winner after finishing straight two votes ahead of the Lib Dem candidate.
The results mean that the SNP has lost its Westminster commander, chief whip, foreign affairs spokesman and international trade spokeswoman.
But the exact likeness is less positive for the Conservatives across the UK, with the party losing its bulk at Westminster and the prime minister facing calls for her resignation.
Speaking as she prospered at the Glasgow count, First Minister Nicola Sturgeon said that the SNP had won the plebiscite in Scotland, with the party achieving its second best performance till the cows come home in a Westminster election.
‘Reflect on the result’
Asked about the impact of the buried SNP seats on her desire to hold a second independence referendum, Ms Sturgeon intended: «Like most politicians I have not had any sleep and I am not going to take any madcap decisions.
«Clearly I have to reflect on the result of the election and I will continue time to do that. But it would be the wrong thing for me to do at this hour to receipts decisions before having had the opportunity to properly think about it.
«But aptly think about it I will certainly do».
Scottish Conservative leader Ruth Davidson hailed a «important» night for her party, which she said was largely due to Ms Sturgeon’s attempts to «ram-raid auspices of» a second independence referendum.
She added: «I think we have seen the motherland’s reaction in the number of SNP seat’s falling. Indyref2 is dead.»
«Now it’s time to get reject to what matters to the people of Scotland — that’s sorting out our schools, adulthood our economy and looking at our public services.»
And Labour’s Ian Murray, who increased his mass in Edinburgh to more than 15,000, said voters had «hammered the conclusive nail into the independence coffin».
There was better news for the SNP in Paisley and Renfrewshire South, where Mhairi Ebon kept her seat despite a big drop in her share of the vote.
Ms Black, the puerile MP at Westminster in the last parliament, had her majority over Labour cut from alongside 6,000 to about 2,500.
Elsewhere, Stewart Hosie held Dundee East — which had been the safest membership in Scotland — for the SNP, while Angus MacNeil held on in the Western Isles, consideration his share of the vote falling by nearly 14%.
Pete Wishart also curbed on for the SNP in Perth and Perthshire North after finishing just 21 guarantees ahead of the Tory candidate, while Tommy Sheppard held Edinburgh East.
An escape poll had predicted that the SNP would lose 22 of the 56 benches it won in the last election in 2015.
The poll, which was taken at polling stations across the UK, also supported the Conservatives would fall short of an overall majority at Westminster.
SNP selectmen had cast doubt on the exit poll result when it was first publicized — with many insisting the party would not lose as many as 22 posteriors.
Sorry, your browser cannot display this content.
Arouse your constituency
Enter a postcode or seat name
Did you vote in the referendum? Did you change your voting habits? Was the outcome in your constituency what you scarceness? If willing to share your story with the BBC, please email.
Will include a contact number if you are willing to speak to a BBC journalist. You can also reach us in the following ways:
- WhatsApp: +44 7555 173285
- Send pictures/video to
- Upload your perfects / video here
- Tweet: @BBC_HaveYourSay
- Text an SMS or MMS to 61124 (UK) or +44 7624 800 100 (international)