Edinburgh Castle's many lives
Edinburgh Castle sits on a volcanic plug that formed three hundred and fifty million years ago, a natural defence that made it a royal residence for centuries and one of the most besieged places in the world.
Since the reign of Malcolm III in the eleventh century, there has been a royal castle on the rock. Its role as a residence faded after the fifteenth century, and by the seventeenth century it was mostly a military garrison. It has been a treasury, a mint, a prison, and a national archive, among other things. The castle has played a prominent role in Scottish history, with twenty-six sieges in its 1100-year history.
Most of the current buildings do not pre-date the Lang Siege of 1573, when artillery bombardment largely destroyed the medieval defences. The one exception is St Margaret's Chapel, from the early twelfth century, which is the oldest building in Edinburgh. It was once thought that Saint Margaret herself worshipped there, but the architecture suggests it was built during the reign of David I, her fourth son.
After the Protestant Reformation, the chapel fell into disuse and became a gunpowder store until the mid-nineteenth century, when an antiquarian recognised its significance and Queen Victoria supported its restoration. The castle was involved in many conflicts, from the Wars of Scottish Independence in the fourteenth century to the Jacobite rising of 1745. Given its history, it is surprising that only twenty-six sieges are recorded; one might expect more.