Edinburgh Castle is a historic fortress in Scotland located atop Castle Rock, a volcanic plug formed roughly 350 million years ago. Positioned 130 meters above sea level and surrounded by 80-meter cliffs to the north, south, and west, the site possesses natural defensive terrain with its main entrance situated along the gentler eastern slope. Operated by Historic Environment Scotland, the landmark stands as a prominent national icon, attracting over two million visitors annually and serving as the backdrop for the Royal Edinburgh Military Tattoo.
Archaeological evidence indicates human activity on the rock dating to the late Bronze or early Iron Age, making it one of the longest continuously occupied sites in Scotland. Ancient texts refer to the location as Alauna and Din Eidyn. By the 11th century, during the reign of King Malcolm III, the location had become a key royal seat, continuing as a monarchical residence until 1633. Over time, the fortress served multiple functions, acting as a state treasury, national archive, mint, military garrison, prison, and arsenal.
Throughout its 1,100-year history, the castle endured 26 sieges, including major conflicts during the Wars of Scottish Independence and the Jacobite rising of 1745. An intense artillery bombardment during the Lang Siege of 1573 destroyed most of the medieval defenses. Consequently, few surviving edifices predate this event, with notable exceptions being St Margaret's Chapel—built in the early 12th century and recognized as the oldest building in Edinburgh—alongside the Royal Palace and the early 16th-century Great Hall.
In addition to historic architecture, the castle precinct holds the Honours of Scotland, the historical Scottish royal regalia, as well as the Scottish National War Memorial and the National War Museum. Although its primary function is tourism, parts of the castle remain under British Army administration for ceremonial and official purposes. It functions as the regimental headquarters for the Royal Regiment of Scotland and the Royal Scots Dragoon Guards, while containing regimental museum collections for these units and the Royal Scots.
See the full Edinburgh travel guide for where to stay, the best time to visit and the top things to do.