First Yousaf government

Humza Yousaf formed the first Yousaf government on 29 March 2023 following his appointment as first minister of Scotland at the Court of Session. It followed the resignation of Nicola Sturgeon as first minister and leader of the Scottish National Party (SNP) on 15 February, triggering a leadership contest that Yousaf won.

The Scottish Green Party voted to remain in government with the SNP, which saw Yousaf's administration continue with the Bute House agreement, a pro-independence majority government. His cabinet consists of seven women and three men, the first majority women cabinet.

Yousaf dissolved the power-sharing agreement with the Greens on 25 April 2024, and moved to form a new SNP minority government, the Second Yousaf government.

On Monday 29 April 2024, Humza Yousaf announced that he was resigning after dissolving the power-sharing agreement with the Greens and two votes of no confidence were put forward - one by the Scottish Conservatives against him, the other by Scottish Labour against the whole SNP government.

2023
On 15 February 2023, Nicola Sturgeon announced her intention to resign the leadership of the SNP and as First Minister. Yousaf declared his candidacy for the 2023 leadership election. He won the internal party contest to become leader on 27 March 2023. On 28 March, Yousaf was nominated by the Scottish Parliament to become the next first minister and on the same day he announced Shona Robison as his deputy first minister. Yousaf offered Kate Forbes, who he had beaten in the leadership race, a demotion as rural affairs secretary, but she turned down this offer and left government. Forbes' campaign manager in the election race and who served as the business minister under Sturgeon, Ivan McKee, also announced he would leave government.

Yousaf was formally sworn into office as first minister on 29 March 2023 and announced the formation of a new government. There was speculation Robison, who he announced the previous day as his deputy, was to take over the finance portfolio from Forbes, which was later confirmed as true. Neil Gray, who was Yousaf's campaign manager, was appointed the wellbeing economy secretary, with responsibility for energy. Michael Matheson succeeded Yousaf as health secretary, with Shirley-Anne Somerville succeeding Robison as the social justice secretary.

Angus Robertson and Mairi Gourgeon remained in their respective roles as the constitution secretary and rural affairs secretary.

Jenny Gilruth was promoted to cabinet as education secretary, along with Màiri McAllan as the net zero secretary. Angela Constance, who previously served in the cabinets of Alex Salmond and Nicola Sturgeon, returned to cabinet as the justice secretary. She succeeded Keith Brown, the SNP's depute leader, who was removed from government.

Yousaf appointed Jamie Hepburn the minister for independence, something the Scottish Conservatives criticised for being a “taxpayer-funded nationalist campaigner”.

In early April 2023, in response to Operation Branchform and the arrest of former SNP CEO Peter Murrell, Johnston Carmichael, the auditor for the SNP, publicly announced they had resigned. Yousaf later confirmed that Johnston Carmichael had resigned around October 2022 but he was unaware of this until after winning the leadership campaign.

SNP President Michael Russell claimed in April 2023 that the SNP was facing its biggest challenge in 50 years. On 11 April 2023, Yousaf stated that Peter Murrell would not be suspended because he is "innocent until proven guilty".

2024
On 25 April 2024 Scottish National Party First Minister Humza Yousaf unilaterally announced that the power sharing agreement with the Scottish Green Party - which had been in place since 31 August 2021 - was dissolved with immediate effect, moving to form an SNP minority government.

This resulted in the Green Party's two Ministers Patrick Harvie and Lorna Slater leaving government and their respective posts of Minister for Zero Carbon Buildings, Active Travel and Tenants' Rights and Minister for Green Skills, Circular Economy and Biodiversity being abolished.

March 2023 to April 2024
{| class="wikitable" ! colspan="5" |

Junior ministers
! style="width: 350px" |Post !Minister ! colspan="2" |Political Party !Term ! style="background-color: ; width: 1px" | ! style="background-color: ; width: 1px" | ! style="background-color: ; width: 1px" | ! style="background-color: ; width: 1px" | ! style="background-color: ; width: 1px" | ! style="background-color: ; width: 1px" | ! style="background-color: ; width: 1px" | ! style="background-color: ; width: 1px" | ! style="background-color: ; width: 1px" | Minister for Veterans ! style="background-color: ; width: 1px" | ! style="background-color: ; width: 1px" | ! style="background-color: ; width: 1px" | ! style="background-color: ; width: 1px" | ! style="background-color: ; width: 1px" | ! style="background-color: ; width: 1px" | ! style="background-color: ; width: 1px" | ! style="background-color: ; width: 1px" | ! style="background-color: ; width: 1px" | ! style="background-color: ; width: 1px" | ! style="background-color: ; width: 1px" | ! style="background-color: ; width: 1px" | ! style="background-color: ; width: 1px" |
 * rowspan="2" |Minister for Drugs and Alcohol Policy
 * Elena Whitham MSP
 * Elena Whitham MSP
 * SNP
 * 2023–2024
 * Christina McKelvie MSP
 * Christina McKelvie MSP
 * SNP
 * 2024-present
 * Minister for Independence
 * Jamie Hepburn MSP
 * Jamie Hepburn MSP
 * SNP
 * 2023–2024
 * Minister for Cabinet and Parliamentary Business
 * George Adam MSP
 * George Adam MSP
 * SNP
 * 2021–2024
 * Minister for Community Wealth and Public Finance
 * Tom Arthur MSP
 * Tom Arthur MSP
 * SNP
 * 2021–2024
 * Minister for Local Government Empowerment and Planning
 * Joe FitzPatrick MSP
 * Joe FitzPatrick MSP
 * SNP
 * 2023–2024
 * Minister for Public Health and Women's Health
 * Jenni Minto MSP
 * Jenni Minto MSP
 * SNP
 * 2023–present
 * Minister for Social Care, Mental Wellbeing and Sport
 * Maree Todd MSP
 * Maree Todd MSP
 * SNP
 * 2023–present
 * Minister for Children, Young People and Keeping the Promise
 * Natalie Don MSP
 * Natalie Don MSP
 * SNP
 * 2023–present
 * Minister for Higher and Further Education
 * Minister for Higher and Further Education
 * Graeme Dey MSP
 * SNP
 * 2023–present
 * rowspan="2" |Minister for Transport
 * Kevin Stewart MSP
 * Kevin Stewart MSP
 * SNP
 * 2023
 * Fiona Hyslop MSP
 * Fiona Hyslop MSP
 * SNP
 * 2023–2024
 * Minister for Small Business, Innovation and Trade
 * Richard Lochhead MSP
 * Richard Lochhead MSP
 * SNP
 * 2023–present
 * Minister for Energy
 * Gillian Martin MSP
 * Gillian Martin MSP
 * SNP
 * 2023–present
 * Minister for Zero Carbon Buildings, Active Travel and Tenants' Rights
 * Patrick Harvie MSP
 * Patrick Harvie MSP
 * Scottish Green
 * 2021–2024
 * Minister for Green Skills, Circular Economy and Biodiversity
 * Lorna Slater MSP
 * Lorna Slater MSP
 * Scottish Green
 * 2021–2024
 * rowspan="2" |Minister for Culture, Europe and International Development
 * Christina McKelvie MSP
 * Christina McKelvie MSP
 * SNP
 * 2023–2024
 * Kaukab Stewart MSP
 * Kaukab Stewart MSP
 * SNP
 * 2024
 * Minister for Equalities, Migration and Refugees
 * Emma Roddick MSP
 * Emma Roddick MSP
 * SNP
 * 2023–2024
 * Minister for Housing
 * Paul McLennan MSP
 * Paul McLennan MSP
 * SNP
 * 2023–present
 * Minister for Victims and Community Safety
 * Siobhian Brown MSP
 * Siobhian Brown MSP
 * SNP
 * 2023–present
 * Minister for Agriculture and Connectivity
 * Jim Fairlie MSP
 * Jim Fairlie MSP
 * SNP
 * 2024-present
 * }