Castles Codexery

Edinburgh Castle

Historic castle on Castle Rock, site of 26 recorded sieges.

Edinburgh Castle

via Wikipedia: Edinburgh Castle · see source

Edinburgh Castle, known in Scottish Gaelic as Caisteal Dhùn Èideann, sits atop Castle Rock, a site that has seen human activity since at least the Iron Age. A royal castle has existed on this rock since the 11th century, during the reign of Malcolm III, and it remained a royal residence until 1633. From the 15th century onward, its role as a home for royalty faded, and by the 1600s it was mainly used as a military garrison. Starting in the early 1800s, its value as a piece of Scotland’s national heritage grew, leading to several restoration projects from the mid-19th century.

Over the centuries, the castle has taken on many roles: a royal home, an arsenal, a treasury, a national archive, a mint, a prison, a military stronghold, and the keeper of the Honours of Scotland—the country’s crown jewels. As a key fortress in the Kingdom of Scotland, it saw action in numerous conflicts, from the 14th-century Wars of Scottish Independence to the Jacobite rising of 1745. A 2014 study counted 26 sieges in its 1,100-year history, making it a contender for the most besieged location in Great Britain and one of the most attacked globally. Most of the current buildings date from after the Lang Siege of 1573, when artillery bombardment destroyed much of the medieval structure. Exceptions include St Margaret’s Chapel from the early 1100s—Edinburgh’s oldest building—along with the Royal Palace and the early 16th-century Great Hall. The castle also houses the Scottish National War Memorial and the National War Museum. The British Army still oversees parts of the site, though its presence is now mostly ceremonial and administrative. It serves as the regimental headquarters for the Royal Regiment of Scotland and the Royal Scots Dragoon Guards, with museums dedicated to them and the Royal Scots.

Managed by Historic Environment Scotland, the castle is the country’s second most popular tourist attraction, drawing 2,044,963 visitors in 2025. Over 70 percent of leisure tourists to Edinburgh include it in their plans. As the setting for the Royal Edinburgh Military Tattoo during the annual Edinburgh Festival, it has become a well-known symbol of both the city and Scotland.

The castle’s rock is the plug of an extinct volcano that formed around 350 million years ago in the lower Carboniferous period. This volcanic pipe cut through softer sedimentary rock before cooling into hard dolerite, a type of basalt. Later glacial erosion wore away the surrounding softer rock but left the dolerite intact, creating a crag and tail shape. The summit rises 130 meters above sea level, with steep cliffs on the south, west, and north reaching 80 meters high. The only easy approach is from the east, where the slope is gentler. While this made the site easy to defend, the basalt’s impermeability caused water problems. A 34-meter-deep well was dug, but it often ran dry during droughts or sieges, as happened during the Lang Siege of 1573.

Archaeologists have not yet determined when humans first occupied Castle Rock. There is no evidence of Roman interest during General Agricola’s invasion of northern Britain near the end of the 1st century AD. A 2nd-century map by Ptolemy shows a settlement called “Alauna,” meaning “rock place,” in the territory of the Votadini tribe, which might refer to this rock—or to another hill fort in the area. The *Orygynale Cronykil* by Andrew of Wyntoun, a 14th-century Scottish chronicler, credits a legendary King of the Britons named Ebraucus with building Edinburgh. Geoffrey of Monmouth, writing around 1100–1155, claimed Ebraucus had fifty children by twenty wives and founded “Kaerebrauc” (York), “Alclud” (Dumbarton), and the “Maidens’ Castle.” The 16th-century English writer John Stow dated this to 989 BC, saying Ebraucus built “the Castell of Maidens called Edenbrough.” The name “Maidens’ Castle” (Latin: *Castra* or *Castellum Puellarum*) appears in charters from David I’s reign (1124–1153) and later, though its origin is unclear. William Camden’s 1607 survey *Britannia* notes that the Britons called it “Castle Myned Agned” (winged rock), while Scots called it the Maidens’ Castle or Virgins’ Castle, supposedly because Pictish royal maidens were kept there. The 17th-century antiquarian Father Richard Hay claimed the “maidens” were nuns later replaced by canons, but 19th-century historian Daniel Wilson dismissed this as apocryphal, and modern historians have ignored it. The name might come from a “Cult of the Nine Maidens” legend. Arthurian tales link the site to a shrine for Morgain la Fee, one of nine sisters. Later, St Monenna—said to be one of nine companions—was reputed to have founded a church at Edinburgh, as well as at Dumbarton and elsewhere.

oldest_building
St Margaret's Chapel (early 12th century) — the oldest surviving building in Edi

Lore & Background

The castle stands upon the plug of an extinct volcano that rose about 350 million years ago during the lower Carboniferous period. The summit is 130 metres above sea level, with rocky cliffs to the south, west, and north rising to 80 metres, making the only readily accessible route to the east. The geology of the rock presents difficulties for water supply; a 34-metre deep well often ran dry during drought or siege, including during the Lang Siege of 1573. Archaeological excavation in the early 1990s uncovered evidence of settlement during the late Bronze Age or early Iron Age, potentially making Castle Rock the longest continuously occupied site in Scotland, though the extent of finds was not significant enough for certain conclusions. The 1990s dig also revealed signs of habitation from the 1st and 2nd centuries AD, with Roman material including pottery, bronzes and brooches, implying a possible trading relationship between the Votadini and the Romans. The earliest known name for the Castle Rock may be 'Alauna', meaning 'rock place', from Ptolemy's 2nd-century map, though this could refer to another hill fort.

Reader's Guide

Edinburgh Castle's significance lies in its long and varied role in Scottish history. It served as a royal residence from the reign of Malcolm III in the 11th century until 1633, then principally as a military garrison from the 17th century. Its importance as national heritage was increasingly recognised from the early 19th century, with restoration programmes from the middle of the 19th century. The castle has been an arsenal, treasury, national archive, mint, prison, and military fortress. Few present buildings pre-date the Lang Siege of 1573, when medieval defences were largely destroyed by artillery bombardment; notable exceptions are St Margaret's Chapel from the early 12th century, which is regarded as the oldest building in Edinburgh, the Royal Palace, and the early 16th-century Great Hall. The castle is the site of the Scottish National War Memorial and the National War Museum. The British Army retains a largely ceremonial and administrative presence, and the castle is the regimental headquarters of the Royal Regiment of Scotland and the Royal Scots Dragoon Guards. It is Scotland's second most visited tourist attraction, with 2,044,963 visitors in 2025 and over 70 percent of leisure visitors to Edinburgh visiting the castle, and serves as the backdrop to the Royal Edinburgh Military Tattoo during the annual Edinburgh Festival.

Did You Know?

A Volcanic Throne – Geology as Fortress

The Castle Rock is not merely a hill; it is the surviving plug of a volcano that erupted roughly 350 million years ago during the lower Carboniferous period. That ancient molten column punched through surrounding sedimentary layers and cooled into dolerite, an extraordinarily hard form of basalt. When glaciers later scoured the landscape, the softer rock to the east was stripped away while the dolerite core resisted, producing a dramatic crag-and-tail shape. The summit sits 130 metres above sea level, with sheer cliffs of up to 80 metres on three sides, leaving only the gentler eastern ridge as a practical approach. This made the site a natural fortress long before any human hand raised a wall. Yet the same geology that granted defence also created a vulnerability: basalt is nearly impermeable, so drawing water proved agonising. Even a 34-metre-deep well could not keep the Upper Ward supplied through drought or siege, a problem that bit hard during the Lang Siege of 1573.

The Most Besieged Rock – A Record of Conflict

Research completed in 2014 catalogued 26 distinct sieges across the castle's roughly 1,100-year history, earning it the claim of being 'the most besieged place in Great Britain and one of the most attacked in the world'. That tally spans an extraordinary sweep of conflict, from the Wars of Scottish Independence in the 14th century through to the Jacobite rising of 1745. The castle was not a passive witness; it was a central actor in each of those struggles. The physical scars of that history are visible in the built fabric: few of the structures standing today pre-date the Lang Siege of 1573, when sustained artillery bombardment largely obliterated the medieval defences. The survivors are few and precious. St Margaret's Chapel, dating to the early 12th century, is regarded as the oldest building in all of Edinburgh. The Royal Palace and the early 16th-century Great Hall also endure, but they are exceptions rather than the rule. Every other wall, every remaining curtain, is a later reconstruction layered over a site that had already been shattered.

A Castle of Many Roles – From Throne Room to Treasury

No single function defines Edinburgh Castle. From the reign of Malcolm III in the 11th century, the rock housed a royal residence, a role it maintained until 1633. Yet even as the crown's domestic interest waned from the 15th century onward, the castle never fell idle. It became, in succession or in combination, an arsenal, a treasury, a national archive, a mint, a prison, and a military garrison. By the 17th century, its residential purpose had largely given way to garrison duties. It also became the permanent home of the Honours of Scotland, the nation's regalia, a custodianship that underscores its symbolic weight. The British Army retains responsibility for certain areas to this day, though its role is now predominantly ceremonial and administrative. The castle serves as regimental headquarters for the Royal Regiment of Scotland and the Royal Scots Dragoon Guards, and it houses their regimental museums alongside that of the Royal Scots. In short, the castle has been a working institution for over a millennium, its purposes shifting with the needs of the state.

Scotland's Living Symbol – Heritage, Tourism, and Identity

From the early 19th century, recognition of the castle's place in Scotland's national heritage grew steadily, and restoration programmes have been carried out continuously since the middle of that century. Today, under the stewardship of Historic Environment Scotland, the castle stands as the country's second most visited tourist attraction, drawing 2,044,963 visitors in 2025 alone. More than 70 percent of all leisure visitors to Edinburgh make the climb to the rock, a figure that speaks to its gravitational pull on the city's cultural life. The castle also anchors the annual Edinburgh Festival as the dramatic backdrop to the Royal Edinburgh Military Tattoo, an event that projects the castle's silhouette to audiences around the globe. It is the site of the Scottish National War Memorial and the National War Museum, tying its martial past to a broader remembrance. For many, the image of those cliffs and ramparts is not simply a landmark but a shorthand for Scotland itself.

Common Misconceptions (Editorial)

One common misconception is that the castle was built on a typical hill, when in fact it stands on the plug of an extinct volcano that erupted about 350 million years ago. Another is that a deep well guaranteed a reliable water supply, but the 34-metre deep well often ran dry during drought or siege, including during the Lang Siege of 1573. Some may also believe the site’s continuous habitation is definitively proven, but archaeological evidence from the 1990s was not significant enough for certain conclusions about occupation from the late Bronze Age or early Iron Age.

Why It Matters (Editorial)

Edinburgh Castle endures not only as a physical landmark but as a living archive of more than a millennium of Scottish history, from Iron Age settlement through royal drama, war, and imprisonment to its modern role as a top tourist attraction. Its 26 sieges and continuous occupation remind us that the story of a place can be as turbulent and layered as the geology beneath it, making it a powerful symbol of resilience and national identity.

Frequently Asked Questions

What is Edinburgh Castle?

Edinburgh Castle is a historic fortress perched atop Castle Rock in Edinburgh, Scotland, a site humans have occupied since at least the Iron Age. Over the centuries it has functioned as a royal residence, military stronghold, prison, treasury, and home to the Honours of Scotland.

What role does Edinburgh Castle play in Scottish history?

The castle served as one of the Kingdom of Scotland's most critical strongholds, featuring in major conflicts from the Wars of Scottish Independence through the Jacobite rising of 1745. Its strategic position on Castle Rock made it a repeatedly targeted but fiercely defended seat of royal and military power.

How many sieges has Edinburgh Castle survived?

The castle has endured numerous sieges throughout its recorded history as a royal fortress, though the precise count is still debated among historians. Its steep volcanic rock base made it exceptionally difficult to capture, which is why so many attempts were made over the centuries.

Why is Edinburgh Castle important?

It is widely regarded as one of the most significant strongholds in Scottish history, having served multiple vital roles from royal dwelling to military defense. Its continuous human occupation since the Iron Age and its involvement in pivotal national conflicts make it a cornerstone of Scottish identity.

What is the oldest building in Edinburgh Castle?

St Margaret's Chapel, dating to the early 12th century, is the oldest surviving structure within the castle and in the entire city of Edinburgh. It sits among the castle's walls and represents the earliest known building on the Castle Rock site.

More in Castles 1-22

Spotted an error? Know more?

This is a living reference — every entry is fact-audited, and reader corrections feed straight into our audit queue. Suggest an edit · See this site's audit record

Comments

Loading…
Open in the interactive codex →