It’s been a dramatic 12 days in Scottish politics.
It began with the Scottish Greens being kicked out of government after a fall-out over the decision to scrap key a climate change target - and ended with the first minister quitting his job.
Take a look back at some of the key moments which led to Humza Yousaf’s resignation.
Video by Morgan Spence
Live updates as Humza Yousaf resigns as Scotland's first minister