A northern medieval kingdom shaped by Gaelic, Pictish, Norse, and Anglo-Norman influences.
Scotland was assembled, not conquered into being: the Gaelic kings of Alba — traditionally from Kenneth MacAlpin (c. 843) — fused Picts and Scots, took Lothian at Carham (1018) and Strathclyde soon after, and by Máel Coluim III's day ruled a realm from the Tweed to the Moray Firth that the Canmore dynasty then transformed with Anglo-Norman settlers, burghs, and reformed monasticism.
Its defining medieval ordeal was the Wars of Independence: the succession broken in 1290, Edward I of England's overlordship and the humiliation of John Balliol, resistance under William Wallace and victory under Robert the Bruce at the Battle of Bannockburn (1314), and the Declaration of Arbroath (1320) — sovereignty argued as community consent — before the long Stewart centuries of border war and French alliance.
Medieval Scotland fused four peoples: Picts north of the Forth, whose kingdom dominated the early north; Gaelic Scots of Dál Riata in Argyll, bringing Columba's Iona (563) and its paruchia; Britons of Strathclyde around Dumbarton and Govan; and Angles of Lothian, Northumbria's northern shore. Viking pressure — Dumbarton sacked from Dublin in 870, the isles and Caithness settled from Norway — squeezed them together.
The kingdom of Alba appears under Kenneth MacAlpin's dynasty from the mid-ninth century, Gaelic in speech and church (the relics of Columba divided between Dunkeld and Ireland), crowning its kings on the Stone at Scone. Constantine II (900–943) named it Alba, fought Æthelstan at Brunanburh, and retired to St Andrews; Carham (1018) won Lothian, and Strathclyde's absorption under Máel Coluim II's heirs completed the mainland assembly the Canmores inherited.
Máel Coluim III (Canmore, 1058–1093) — Macbeth's supplanter, husband of the English saint-queen Margaret — opened the kingdom southward; his sons, above all David I (1124–1153), revolutionised it: Anglo-Norman families (Bruce, Balliol, Stewart) planted on knight-service, royal burghs chartered from Berwick to Inverness with their own law, sheriffdoms and justiciars superimposed on the mormaers, a reformed coinage, and the great border abbeys — Melrose, Kelso, Jedburgh, Dryburgh — anchoring a Europeanised church. Contemporaries called it revolution; David called it improvement, and fought England at the Standard (1138) all the same.
His successors consolidated: William the Lion's capture at Alnwick (1174) briefly subjected the realm to Henry II of England (the Falaise homage, bought back in 1189); Alexander II and Alexander III rounded the kingdom — the Western Isles won from Norway after Largs (1263) by the Treaty of Perth (1266) — and the thirteenth century closed in prosperity remembered as a golden age, until Alexander III rode over a Fife cliff in 1286 and the succession died with his granddaughter, Margaret, Maid of Norway, in 1290.
Edward I of England judged the Great Cause as overlord, chose John Balliol (1292), then stripped king and kingdom — Berwick sacked, Dunbar won, the Stone of Scone carried south (1296). Resistance made its legends fast: William Wallace and Moray at Stirling Bridge (1297), Wallace's defeat at Falkirk and betrayal to execution (1305); then Robert the Bruce — crowned at Scone weeks after killing John Comyn at Dumfries (1306) — rebuilding from fugitive to victor of the Battle of Bannockburn (1314), the raiding peace-making of the Declaration of Arbroath (1320), and the recognition of Edinburgh-Northampton (1328).
The war's afterlives filled the century: Edward Balliol and the Disinherited winning Dupplin Moor and Halidon Hill in the 1330s; David II captured at Neville's Cross (1346) honouring the French alliance after Crécy; ransom politics and the first Stewart, Robert II (1371). Late medieval Scotland ran on that "auld alliance" (renewed from 1295 to Flodden and beyond), on border war — Otterburn (1388) — and on a crown wrestling its magnates: James I's murdered reforms (1437), the Black Douglases broken by James II (Arbroath's spirit surviving in a parliament of three estates that could, and did, say no).
Scottish kingship kept its own grammar: inauguration at Scone on the Stone (until 1296) with the royal genealogy recited in Gaelic, no anointing until 1329's papal grant — legitimacy resting on kin, community, and continuity more than sacral theatre. The community of the realm was no phrase: it governed as Guardians through the interregna and put its name to Arbroath's famous conditional loyalty — a king who betrayed the kingdom's freedom could be replaced.
Government mixed imported and native forms: sheriffs and justiciars beside earls who were often the old mormaers renamed; burgh law (the Leges Burgorum) and the Court of the Four Burghs; a parliament of prelates, nobles, and burgh commissioners auditing war finance from the 1320s; and beyond the highland line, lordships — above all the MacDonald Lordship of the Isles — where the crown's writ ran through galleys, bonds, and negotiation rather than sheriffs.
Kenneth MacAlpin, d. 858 — the dynasty's traditional founder over Picts and Scots.
Constantine II, 900–943 — Alba named, Brunanburh fought, the realm consolidated.
Máel Coluim II, 1005–1034 — Carham (1018) and Lothian won.
David I, 1124–1153 — burghs, abbeys, sheriffs, and settlers: the great transformer.
Alexander III, 1249–1286 — the Isles won, the golden age presided; his death broke the line.
John Balliol, 1292–1296 — the Great Cause's king, stripped as "Toom Tabard".
Robert the Bruce, 1306–1329 — Bannockburn, Arbroath, and independence restored.
David II, 1329–1371 — Neville's Cross, captivity, and the shrewd fiscal recovery.
Robert II of Scotland, 1371–1390 — the first Stewart king.
James I, 1406–1437 — the poet-king's legislative storm, ended by assassination.