Humza Yousaf broke down in tears as he delivered his resignation speech as Scotland's First Minister and SNP leader.
His leadership has been in turmoil since his shock decision to terminate the Bute House Agreement and kick the Scottish Greens out of government.
The beleaguered FM was facing two knife-edge confidence votes in Parliament this week. It looked increasingly unlikely that he would secure the support of enough MSPs to survive.
Announcing his resignation at his official residence at Bute House just after midday, Mr Yousaf said he had “underestimated” the level of hurt ending the power-sharing deal with the Greens would have.
While he said it was “the right decision”, he said: “Unfortunately in ending the Bute House Agreement in the matter I did I clearly underestimate the level of hurt and upset that caused Green colleagues.
READ MORE | FM resignation must not derail agri legislation
“For a minority government to be able to govern effectively trust when working with the opposition is clearly fundamental.”
He added a route through the no-confidence vote was “absolutely possible”.
But he added: “I am not willing to trade in my values or principles or do deals with whomever simply for retaining power.”
He continued: “After spending the weekend reflecting on what is best for my party, for the government and for the country I lead, I’ve concluded that repairing our relationship across the political divide can only be done with someone else at the helm.
“I have therefore informed the SNP’s national secretary of my intention to stand down as party leader.”
Mr Yousaf became emotional as he paid tribute to his family in his speech.
Appearing to fight back tears, he said: “I am in absolute debt to my wonderful wife, my beautiful children and my wider family for putting up with me over the years. I’m afraid you will be seeing a lot more of me from now.
“You are truly everything to me.”
The announcement of Mr Yousaf’s resignation comes exactly 13 months after he was sworn in as Scottish first minister.
Whoever is chosen to replace him will be the seventh person to hold the post since the Scottish Parliament was established in 1999 – as well as being the second person in just over a year to have the top job.
Labour, the Tories and the Lib Dems had all been clear that they would not back him in the no confidence vote.
Scottish Conservative leader Douglas Ross, who had tabled a motion of no confidence in the First Minister, said his party had “forced Humza Yousaf out of office for repeatedly failing Scotland”.
Mr Ross insisted: “Faced with our vote of no confidence, the SNP leader has quit rather than face a humiliating defeat.”
While the Tory stressed that “on a personal level, I wish Humza Yousaf and his family well” he added that his party “cannot forgive the damage he did to families and households across Scotland by raising taxes, letting NHS waiting lists spiral and attacking free speech”.
Mr Ross continued: “The next First Minister must abandon the nationalist obsession with independence and focus solely on Scotland’s top priorities, such as creating jobs and improving our ailing public services.”
Meanwhile, former Scottish deputy first minister John Swinney said it would be a “difficult day”.
However, he refused to rule out standing to be SNP leader if this would prevent a vote of no confidence in the Scottish Government.
Mr Swinney, who was speaking at an event being staged by the Resolution Foundation on 25 years of devolution, said: “I will consider what the First Minister says and reflect on that.
“I may well have more to say at a later stage during the week.”
Meanwhile, SNP MSP Michelle Thomson told BBC Radio Scotland on Monday morning that she had heard “rumours” Mr Yousaf was considering stepping down.
Comments: Our rules
We want our comments to be a lively and valuable part of our community - a place where readers can debate and engage with the most important local issues. The ability to comment on our stories is a privilege, not a right, however, and that privilege may be withdrawn if it is abused or misused.
Please report any comments that break our rules.
Read the rules here