When was edinburgh castle built
Last updated: April 1, 2026
Key Facts
- The earliest fortification on Castle Rock dates to around 600 AD in the early medieval period
- St. Margaret's Chapel, the oldest surviving structure, was built around 1130 AD during the reign of King David I
- The Great Hall was constructed in the 15th century under King James IV of Scotland
- Edinburgh Castle changed hands multiple times during Scottish conflicts, particularly during wars of Scottish independence
- The castle was last used as a military stronghold in the 18th century and is now Scotland's most-visited paid attraction
A Fortress Built Over Centuries
Edinburgh Castle is not a single structure built at one time but rather a complex fortress that evolved over more than 1,000 years. The castle sits atop Castle Rock, a volcanic formation that made it naturally defensible. Construction and expansion occurred in multiple phases under different Scottish kings, creating the layered structure visitors see today.
Medieval Beginnings
The earliest known fortification on Castle Rock dates to around 600 AD during the early medieval period. However, the first documented structures that still survive date to the 12th century. St. Margaret's Chapel, built around 1130 AD under King David I, is the oldest surviving building within the castle complex. This small Romanesque chapel is dedicated to Margaret of Scotland, a beloved queen and later saint.
Expansion and Major Constructions
Throughout the medieval and early modern periods, Edinburgh Castle was expanded and rebuilt. The Great Hall, one of the castle's most impressive structures, was constructed in the 15th century under King James IV of Scotland. This magnificent building features a distinctive hammer-beam roof and was designed to host royal banquets and ceremonies.
During the Scottish Wars of Independence (13th-14th centuries), the castle was fought over repeatedly, changing hands between English and Scottish forces. These conflicts necessitated ongoing repairs and reinforcements. During the 16th and 17th centuries, the castle served as both a royal residence and a military fortress, with additional buildings constructed to accommodate royal courts.
From Military Stronghold to Heritage Icon
In the 18th century, Edinburgh Castle transitioned from an active royal residence to a military garrison and eventually a historic monument. The last major military action at the castle occurred during the Jacobite Rebellion in 1746. Today, it remains Scotland's most-visited paid attraction, drawing hundreds of thousands of visitors annually who explore its museums, historic buildings, and enjoy panoramic views of Edinburgh and the surrounding landscape.
Related Questions
What is the oldest part of Edinburgh Castle?
St. Margaret's Chapel, built around 1130 AD, is the oldest surviving structure in Edinburgh Castle and was dedicated to the beloved Queen Margaret of Scotland.
Why is Edinburgh Castle on a rock?
Castle Rock is a volcanic formation that naturally fortified the castle, providing strategic advantages for defense and making it difficult to attack.
Was Edinburgh Castle ever captured?
Yes, Edinburgh Castle changed hands multiple times during the Scottish Wars of Independence, with English and Scottish forces alternately controlling it.
More When Was in Daily Life
Also in Daily Life
More "When Was" Questions
Trending on WhatAnswers
Browse by Topic
Browse by Question Type
Sources
- Wikipedia - Edinburgh CastleCC-BY-SA-4.0
- Historic Environment Scotlandproprietary