Edinburgh Castle

Edinburgh Castle rising above the Esplanade, with the main gate and layered defensive buildings visible

Image: Edinburgh Castle from the Esplanade by Daniel Kraft, licensed under CC BY-SA 3.0.

Edinburgh Castle is a defended summit shaped by volcanic rock, royal government, siege warfare, army occupation and national commemoration. Its surviving fabric ranges from the Romanesque St Margaret’s Chapel to twentieth-century memorial architecture, with each phase adapting what came before.

Quick facts

Date
Occupied from the late Bronze Age; principal surviving fabric from about 1130 to the twentieth century
Architect / designer
Many royal, military and state campaigns; named contributors include John Merlioun, Captain Theodore Dury, Dugal Campbell, William Skinner, Hippolyte Jean Blanc and Sir Robert Lorimer
Type
Royal castle, fortress, garrison, memorial complex and visitor attraction
Designation
Scheduled monument (SM90130); within the Old and New Towns of Edinburgh World Heritage Site
OS grid reference
NT 25183 73539

A fortress made by its rock

Castle Rock rises abruptly above the city, and its narrow summit dictates the castle’s long, ascending plan. The approach passes from the Esplanade through layered gates and wards before reaching Crown Square at the top. Batteries follow the edges of the crag; courtyards and terraces occupy the limited level ground.

The castle also fixes the western end of the Old Town ridge. From Princes Street and the New Town it reads as a dark mass above the skyline; from within the castle, views along the ridge and across the Firth of Forth explain why this position was defensible and symbolically powerful.

Royal stronghold and contested prize

Archaeology records occupation from the late Bronze Age, while later tradition and documentary history make the rock a royal centre. During the Wars of Independence the castle changed hands repeatedly; in 1314 a Scottish force led by Thomas Randolph recovered it in a night assault. Medieval rebuilding created a royal residence as well as a fortress, but the surviving fabric is uneven because warfare, changing court life and later military use repeatedly transformed the summit.

St Margaret’s Chapel, built about 1130 by David I and dedicated to his mother, is the oldest standing building in Edinburgh. Its small barrel-vaulted nave, rounded apse and Romanesque chancel arch contrast with the later scale of the complex. Used as a munitions store after the Reformation, it was recognised and restored in the nineteenth century; its present appearance therefore combines medieval fabric with later recovery.

Crown Square: architecture of Stewart monarchy

The upper ward is organised around Crown Square, formed over medieval vaults to create a level ceremonial court. The arrangement brought palace, hall, chapel and service buildings together in a Renaissance conception of royal government. Although all have been altered, the square still shows how architecture was used to present the Stewart monarchy as a European court.

On the south stands the Great Hall, built for James IV in the early sixteenth century and completed by 1511. Its hammer-beam roof is substantially original and is one of the castle’s most important survivals. The hall became barracks after 1650; Hippolyte Jean Blanc’s restoration of 1887–91 recovered a ceremonial interior but also replaced or recast windows, doorway and other details. Visitors should therefore distinguish the medieval roof and surviving masonry from the confident Victorian restoration.

The Palace Block on the east incorporates fabric from the fifteenth century and earlier. It was remodelled for James VI’s proposed return in 1617 after decades of damage and disuse. Within it is the small room where Mary, Queen of Scots gave birth to James VI in 1566. The palace’s present form is a layered statement of ancestry and kingship.

Siege, artillery and the Half Moon Battery

The Lang Siege of 1571–73 caused severe damage. David’s Tower, the dominant late-medieval tower house, was brought down; the great curved Half Moon Battery was then built over its remains. Excavation in 1912–13 rediscovered the buried tower. This is a particularly clear example of one phase of military architecture physically covering another: the artillery platform expresses a new defensive system while preserving fragments of the medieval fortress below.

The Portcullis Gate was rebuilt after the siege, with further work in 1584; its upper Argyle Tower is largely a nineteenth-century reconstruction. Mons Meg, the huge fifteenth-century bombard displayed near St Margaret’s Chapel, and the batteries around the rock help visitors read the changing scale and direction of artillery defence.

From royal residence to garrison

Holyroodhouse had displaced the castle as Edinburgh’s principal royal residence by the mid-sixteenth century. From 1660 the summit increasingly became Scotland’s chief garrison. The Queen Anne Building of 1708–13 provided purpose-built accommodation for officers and gunners; the Governor’s House followed in 1740–42. Storehouses built in 1753–54 were later converted to a military hospital, while the New Barracks of 1796–99 and the Military Prison completed in 1842 show the continuing pressure for accommodation and discipline.

Vaults beneath Crown Square held prisoners of war from the mid-eighteenth century into the Napoleonic period. The One o’Clock Gun, first fired in 1861 as a time signal for shipping in the Firth of Forth, keeps a public military ritual alive. Parts of the castle remain in military use, so the site is simultaneously monument, museum, workplace and ceremonial stage.

A national monument remade

During the later nineteenth century the castle was increasingly understood as a national monument and visitor destination. Restorations to St Margaret’s Chapel and the Great Hall, the reconstruction of the Argyle Tower and the creation of a more theatrical entrance expressed Victorian ideas about medieval Scottish architecture. These works are historically important in their own right, showing how medieval styles were reinterpreted in the nineteenth century.

The Scottish National War Memorial, designed by Sir Robert Lorimer and built in 1924–27 within the shell of the former North Barracks, completes the north side of Crown Square. Its Hall of Honour, shrine, sculpture, stained glass and metalwork were created by a large body of Scottish artists and craftspeople. The building adds twentieth-century remembrance to a court already charged with royal and military history.

Why the castle matters

Edinburgh Castle is exceptional for making long historical processes visible: occupation and defence on a volcanic stronghold; the architectural projection of medieval and Renaissance monarchy; adaptation to artillery; expansion as a permanent garrison; and the later creation of a national monument. Its commanding relationship with the Old Town makes those histories legible at the scale of the whole city.

What to notice

  • How walls, gates and batteries follow the rock rather than a regular plan.
  • The Romanesque chancel arch and compact scale of St Margaret’s Chapel.
  • Crown Square as a deliberately composed royal court above medieval vaults.
  • The Great Hall’s hammer-beam roof, set against extensive nineteenth-century restoration.
  • The Half Moon Battery masking the remains of David’s Tower.
  • The contrast between royal buildings, austere garrison blocks and Lorimer’s richly worked memorial.
  • Long views that connect Castle Rock to the Old Town ridge, New Town and Firth of Forth.

Visiting and access

The castle is ticketed and can sell out, so current opening and booking information should be checked before travel. The route from the entrance to Crown Square is approximately 350 metres, steep in places and mainly cobbled. Historic Environment Scotland provides a mobility vehicle to Crown Square on request, subject to operating limits; the Great Hall and National War Memorial have ramped access, while other areas include steps and uneven surfaces. The One o’Clock Gun is loud and affects mobility-vehicle operation around firing time. Security, event and military arrangements can also alter access.

Timeline

  1. Late Bronze Age onward Archaeological evidence records occupation of Castle Rock.
  2. About 1130 St Margaret’s Chapel is built under David I.
  3. 1314 Thomas Randolph’s force recaptures the castle during the Wars of Independence.
  4. Fifteenth–early sixteenth centuries Palace Yard, later Crown Square, develops as the focus of Stewart royal government.
  5. By 1511 James IV’s Great Hall is completed.
  6. 1566 Mary, Queen of Scots gives birth to James VI in the Palace.
  7. 1571–73 The Lang Siege destroys David’s Tower; the Half Moon Battery follows.
  8. 1615–17 The Palace is reconstructed for James VI’s planned return.
  9. Seventeenth–nineteenth centuries Barracks, batteries, stores, hospital and prison establish the garrison complex.
  10. 1887–91 Hippolyte Jean Blanc restores the Great Hall.
  11. 1924–27 Sir Robert Lorimer’s Scottish National War Memorial is built.
  12. Present The castle combines heritage presentation, ceremony and active military use.

What we know — and what remains uncertain

The scheduled monument record provides the best overall account of the complex, but the development of individual buildings is intricate and some early arrangements remain uncertain. St Margaret’s Chapel has a complicated fabric history, and the Palace retains many phases whose original plans cannot always be reconstructed confidently. This page therefore separates documented building campaigns from later interpretation. The map point marks the monument centre; the scheduling record defines its legal boundary.

Sources & further reading

Explore further

Location

reviewed Scotland’s Architecture record small badge = designation

OS grid reference NT 25183 73539 · Location confidence: High for the monument centre supplied by HES; the point is not the scheduled boundary and individual buildings within the complex have separate histories. · Select the marker to open its satellite view in Google Maps. On desktop, drag Pegman (the yellow figure) onto a blue road. On mobile, turn on the Street View layer and tap a blue road. Other photo markers may be user-contributed.

Suggest a marker correction

Suggest a more accurate position

The teal marker is the current published position. The orange marker starts slightly to its right so both remain visible; this is only a visual starting position. Tap the correct place on the map or drag the orange marker. Sending this form creates a private review entry only; it does not move the published marker.

Current published point Your suggested point

Map: © OpenStreetMap contributors. You can also enter checked coordinates below.

The orange marker is temporarily offset so the teal marker remains visible. Drag it or tap the correct position.

Privacy: this feature stores the suggested coordinates, optional note and optional supporting link in a private administrator log. It does not ask for or store your name, email address, IP address or browser identifier. Routine hosting security logs may still record ordinary request information. Please do not include sensitive personal information.

In these guides: Scottish Castles: Ten Places to Start · Edinburgh: Royal, Civic and National Architecture

Place: Edinburgh · Current use: Historic Environment Scotland visitor attraction, ceremonial site and active military complex (checked 2026-09-24)

Last reviewed: 2026-09-24 · Record: SHD-REC-EDI-CASTLE

Getting here by public transport

Planning a visit? Plan your journey with Traveline Scotland for bus, rail and other public transport connections. Enter the town or nearest suitable stop as your destination; some buildings and rural sites may require a further walk or other onward travel.

Continue exploring

Take another unexpected route through Scotland’s buildings and places.