Historic Scotland
Buy tickets

Opening times

26 March to 30 September:
Daily, 9.30am to 6pm
Last entry 5pm

1 October to 31 March:
Daily, 9.30am to 5pm
Last entry 4pm

Facilities

 

History

Edinburgh Castle has witnessed many of the defining events in Scotland’s history. Sieges were fought over the mighty stronghold. Royalty lived and died within its walls. Just the sight of the Castle Rock has terrified and inspired countless generations.

Fierce Iron Age warriors defended a hill fort here, and the nation’s oldest poetry tells of a war band feasting here for a year before riding to their deaths in battle.

The castle’s royal connections go back 1,000 years, and the city’s oldest building stands on the site. David I built St Margaret’s Chapel around 1130, as a tribute to his devout mother.

Edinburgh has been besieged more than any other castle in the UK, and the Scots and English struggled over its control during the Wars of Independence. In 1314, Thomas Randolph, a relative of Robert the Bruce, led a daring night raid to reclaim it from the English.

Over the last 200 years, Edinburgh Castle has become a national icon. Today it is Scotland’s leading tourist attraction and a chief element of the Old and New Towns of Edinburgh UNESCO World Heritage Site.

View a timeline of Edinburgh Castle’s history.

Home of royalty

Scottish monarchs commissioned grand buildings here – both as secure lodgings and to show off their wealth, power and good taste. The castle’s royal role continues today.

Monarchs who sheltered here include:

  • Queen Margaret (later St Margaret), who died here in 1093
  • Mary Queen of Scots, who gave birth to James VI in the Royal Palace in 1566

Edinburgh was among Scotland’s chief royal residences during the 1400s and 1500s.

Bonnie Prince Charlie – Mary’s great-great-great grandson – captured Edinburgh but failed to take the castle during the 1745–46 Jacobite Rising.

The Stone of Destiny has been kept at the castle since it was returned to Scotland in 1996. Edward I, the English monarch, had removed Scotland’s ancient inauguration stone from Scone in 1296.

Army headquarters

Edinburgh Castle became more important as a military base from the late 1500s onwards.

After the ‘Lang Siege’ of 1571–3, the castle’s military strength was repaired, maintained and improved. Additions included:

  • the distinctive Half Moon Battery
  • a huge garrison
  • a secure jail for prisoners of war

The military presence remains unbroken – Edinburgh Castle is still an active base today. It also houses three military museums, the Scottish National War Memorial and the Prisons of War exhibition.

Buy tickets

Download our visitor app

Discover more on the go – the Historic Scotland app lets you find out about Scotland’s most iconic places wherever you are.

Save with an Explorer Pass

Get free entry to Scotland’s top visitor attractions with an Explorer Pass valid for 3 days or 7 days.

Become a member

Join Historic Scotland to visit our properties free of charge for a full year and support our work at the same time.

Hire a site for filming

Use one of our fantastic locations on your next shoot for an awe-inspiring backdrop to your work.

View learning activities

Our 300+ historic places serve as creative inspiration for all sorts of learning activities – and for learners of all ages.

Search our events

See the past brought to life by the imaginative year-round programme of events at our properties.