Scotland is a country that is part of the United Kingdom. Occupying the northern third of the island of Great Britain, it shares a border with England to the south and is bounded by the North Sea to the east, the Atlantic Ocean to the north and west, and the North Channel and Irish Sea to the southwest. In addition to the mainland, Scotland includes over 790 islands including the Northern Isles and the Hebrides.
Edinburgh, the country's capital and second largest city, is one of Europe's largest financial centers. Edinburgh was the hub of the Scottish Enlightenment of the 18th century, which transformed Scotland into one of the commercial, intellectual and industrial powerhouses of Europe. Glasgow, Scotland's largest city was once one of the world's leading industrial cities and now lies at the centre of the Greater Glasgow conurbation. Scottish waters consist of a large sector of the North Atlantic and the North Sea, containing the largest oil reserves in the European Union. This has given Aberdeen, the third largest city in Scotland, the title of Europe's oil capital.
The Kingdom of Scotland emerged as an independent sovereign state in the Early Middle Ages and continued to exist until 1707, although it had been in a personal union with the kingdoms of England and Ireland since James VI of Scotland succeeded to the English and Irish thrones in 1603. On 1 May 1707, Scotland entered into an incorporating political union with England to create the United Kingdom of Great Britain. This union resulted from the Treaty of Union agreed in 1706 and enacted by the twin Acts of Union passed by the Parliaments of both countries, despite widespread protest across Scotland. Scotland's legal system continues to be separate from those of England and Wales and Northern Ireland, and Scotland constitutes a distinct jurisdiction in public and in private law.
Repeated glaciations, which covered the entire land-mass of modern Scotland, destroyed any traces of human habitation that may have existed before the Mesolithic period. It is believed that the first post-glacial groups of hunter-gatherers arrived in Scotland around 12,800 years ago, as the ice sheet retreated after the last glaciations. Groups of settlers began building the first known permanent houses on Scottish soil around 9,500 years ago, and the first villages around 6,000 years ago. The well-preserved village of Skara Brae on the Mainland of Orkney dates from this period. Neolithic habitation, burial and ritual sites are particularly common and well-preserved in the Northern Isles and Western Isles, where a lack of trees led to most structures being built of local stone.
Scotland's head of state is the monarch of the United Kingdom, currently Queen Elizabeth II (since 1952). The title Elizabeth II caused controversy around the time of the queen's coronation, as there had never been an Elizabeth I in Scotland. A legal case, MacCormick v. Lord Advocate (1953 SC 396), was taken to contest the right of the Queen to title herself Elizabeth II within Scotland, arguing that to do so would be a breach of Article 1 of the Treaty of Union.
Sport is an important element in Scottish culture, with the country hosting many of its own national sporting competitions. It enjoys independent representation at many international sporting events including the FIFA World Cup, the Rugby Union World Cup, the Rugby League World Cup, the Cricket World Cup and the Commonwealth Games, but not at the Olympic Games where Scottish athletes are part of the Great Britain team. Scotland has its own national governing bodies, such as the Scottish Football Association (the oldest national football association in the world) and the Scottish Rugby Union. Variations of football have been played in Scotland for centuries with the earliest reference dating back to 1424. Association football is now the most popular sport and the Scottish Cup is the world's oldest national trophy.