When was edinburgh castle built

Last updated: April 1, 2026

Quick Answer: Edinburgh Castle was built in stages over more than 1,000 years. Early fortifications date to around 600 AD, with major construction occurring in the 12th century and significant expansions through the 1700s.

Key Facts

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.

Sources

  1. Wikipedia - Edinburgh Castle CC-BY-SA-4.0
  2. Historic Environment Scotland proprietary