Edinburgh Castle is an ancient fortress which, from its position atop Castle Rock, dominates the sky-line of the city of Edinburgh, and is Scotland's second most visited tourist attraction, after the Kelvingrove Art Gallery and Museum in Glasgow. Human habitation of the site is dated back as far as the 9th century BC. As it stands today though, few of the castle's structures pre-date the 16th century, with the notable exception of St Margaret's Chapel, the oldest surviving building in Edinburgh, which dates from the early 12th century.
See more at Wikipedia.org...