The Edinburgh Castle is a historic fortress located in the heart of Edinburgh, Scotland. It has been a royal residence since the 12th century and is now a major tourist attraction. The castle is perched atop an extinct volcano, and its walls and towers are visible from many parts of the city.