Following the referendum in 1997, in which the Scottish electorate gave their consent, the Scottish Parliament and Scottish Executive was established (later the Scottish Government) by the Parliament of the United Kingdom and the Labour government of the prime minister, Tony Blair.