Scotland (Scots: Scotland; Scottish Gaelic: Alba) is a country that is part of the United Kingdom. It contains nearly one-third of the United Kingdom's land area, consisting of the northern part of the island of Great Britain and more than 790 adjacent islands, principally in the archipelagos of the Hebrides and the Northern Isles. To the south-east, Scotland has its only land border, which is 96 miles (154 km) long and shared with England; the country is surrounded by the Atlantic Ocean to the north and west, the North Sea to the north-east and east, and the Irish Sea to the south. The population in 2022 was 5,439,842. Edinburgh is the capital and Glasgow is the largest of the cities of Scotland.
The Kingdom of Scotland emerged as an independent sovereign state in the 9th century. In 1603, James VI succeeded to the thrones of England and Ireland, forming a personal union of the three kingdoms. On 1 May 1707, Scotland and England combined to create the new Kingdom of Great Britain, with the Parliament of Scotland subsumed into the Parliament of Great Britain. In 1999 a Scottish Parliament was re-established, and has devolved authority over many areas of domestic policy. The country has its own distinct legal system, education system and religious history, which have all contributed to the continuation of Scottish culture and national identity.