First Minister Nicola Sturgeon has revealed her new Cabinet, with several ministerial roles changing hands.

Deputy first minister John Swinney has been moved from finance to education, with former transport minister Derek Mackay promoted into the role.

Shona Robison has kept her health brief and Michael Matheson has stayed in his post as justice secretary, while Keith Brown has been given the economy brief resulting from the split of John Swinney's former finance role.

Former education minister Angela Constance has gone to welfare, Fiona Hyslop will cover tourism, Fergus Ewing will take over rural affairs and Roseanna Cunningham has taken the environment brief.

Former social justice secretary Alex Neil announced his resignation from the Cabinet earlier on Wednesday morning, prior to the reshuffle, and former rural affairs and environment secretary Richard Lochhead announced his resignation from the Cabinet on Tuesday.

The First Minister also announced her junior ministerial team.

Four SNP MSPs have been promoted in the reshuffle to junior ministers. Jeane Freeman, Shirley-Anne Sommerville, Mark McDonald and Kevin Stewart all become junior ministers for the first time.

Humza Yousaf has become minister of transport and the islands. The role can be seen as future gateway to cabinet with the previous two transport ministers are now cabinet secretaries.

The total size of the ministerial team is now nine cabinet secretaries and 12 junior ministers.

Nicola Sturgeon swore an oath of allegiance to the Queen at the Court of Session as she was formally sworn in as First MInister on Wednesday morning.

On Tuesday, the SNP leader was re-elected as First Minister at the Scottish Parliament. Her only opponent in the ballot was Scottish Liberal Democrats leader Willie Rennie.

Sturgeon has appointed a 50/50 gender-balanced cabinet as pledged.