Edinburgh Castle is a formidable fort that was built by David I on an extinct volcano in Scotland's capital. Originally built in 1130 the Castle represents over 800 years of Scottish history and is a World Heritage site. St Margaret's chapel was also built in 1130 and survives as the oldest building in Edinburgh. Edinburgh Castle was home to the Kings and Queens of Scotland when staying in the city. It was not as comfortable as Holyrood Abbey but offered far greater protection.