List of Scottish monarchs
The Kingdom of the Picts just became known as Kingdom of Alba in Gaelic, which later became known in Scots and English as "Scotland"; the terms are retained in both languages to this day. By the late 11th century at the very latest, Scottish kings were using the term "rex Scottorum", or King of Scots, to refer to themselves in Latin. The Kingdom of Scotland was merged with the Kingdom of England to form a single Kingdom of Great Britain in 1707. Thus Queen Anne became the last monarch of the ancient kingdoms of Scotland and England and the first of Great Britain, although the kingdoms had shared a monarch since 1603 (see Union of the Crowns). Her uncle Charles II was the last monarch to be crowned in Scotland, at Scone in 1651. He had a second coronation in England ten years later.
List of heirs to the Scottish throne
Scotland was ruled by the six Guardians of Scotland on behalf of the child-heir Margaret. However, other powerful nobles claimed the throne, and in an attempt to avoid a civil war the Regents appealed to King Edward I of England for assistance. By the Treaty of Birgham, 1290, Margaret was placed under Edward's guardianship and betrothed to his eldest son, the Prince of Wales. Margaret set out from Norway for Scotland in the autumn of that year, but was taken ill on the voyage and died at Orkney on 26 September 1290, age seven. Scotland was left without an heir and with two claimants, so the Guardians of Scotland again appealed to Edward I to act as an arbitrator between the Competitors for the Crown of Scotland. The two strongest claimants were 
Though Bruce invoked proximity of blood and claimed to have been made Tanist of the Kingdom by the then-childless Alexander III, Balliol was the genealogically senior heir, and Edward declared in his favour following an election at Berwick-upon-Tweed, 3 August 1291.