The Scottish Government is the executive arm of the devolved government of Scotland. It was formed in 1999 as the Scottish Executive following the 1997 referendum on Scottish devolution, and is headquartered at St Andrew's House in the capital city, Edinburgh.