IAN Murray has become Scotland's last remaining Labour MP, warning in his victory speech that his party "will die" if it does not learn from its election result. 

In scenes repeating those from the 2015 General Election, Murray clung on to Edinburgh South - making it the last dot of red on a particularly yellow election map. 

In Scotland, Labour lost six MPs, while the Tories lost seven. The SNP gained 13 and the LibDem kept their total of four. 

Meanwhile south of the Border it was a grim night for Labour, with the Tories winning a majority of 363 seats by 8am. There are still two seats left to declare. 

READ MORE: Election: Boris Johnson fails to mention Scotland in victory speech

READ MORE: Jeremy Corbyn to stand down after 'period of reflection'

Murray, who has been a vocal critic of leader Jeremy Corbyn, kept a solid majority of about 11,000.

Speaking at his count after winning the seat, he said: “This party must listen, this party must respond, or this party will die.

The National:

"The saddest indictment of this General Election campaign is the delivery of a Conservative majority government with the worst Prime Minister this country has ever seen."

He added that while he thought Corbyn should go, "the policy and the ideology has to go too".

READ MORE: SNP win election and strengthen Indyref2 mandate

Corbyn announced at his own count that he would not be leading his party into any more elections, but would stick around while the party reflects on this election and its position. 

It was the worst Labour result since 1935.

LibDem leader Jo Swinson has also announced she will resign with immediate effect.