Kate Forbes, who lost out to rival candidate Humza Yousaf in the Scottish National Party (SNP) leadership contest, is to leave the Scottish government.
The finance secretary was offered a move to rural affairs by the new First Minister but rejected this.