Pre-history of the Castle Rock Geology The castle stands upon the
plug of an
extinct volcano, which is estimated to have risen about 350 million years ago during the lower
Carboniferous period. The Castle Rock is the remains of a
volcanic pipe, which cut through the surrounding
sedimentary rock before cooling to form very hard
dolerite, a type of
basalt. Subsequent
glacial erosion was resisted by the dolerite, which protected the softer rock to the east, leaving a
crag and tail formation. The summit of the Castle Rock is above sea level, with rocky cliffs to the south, west, and north, rising to a height of above the surrounding landscape. This means that the only readily accessible route to the castle lies to the east, where the ridge slopes more gently. The defensive advantage of such a site is self-evident, but the geology of the rock also presents difficulties, since basalt is extremely impermeable. Providing water to the Upper Ward of the castle was problematic, and despite the sinking of a deep well, the water supply often ran out during drought or siege, including during the Lang Siege in 1573. shows a settlement in the territory of the
Votadini named "Alauna", meaning "rock place", making this possibly the earliest known name for the Castle Rock. This could, however, refer to another of the tribe's hill forts in the area. The
Orygynale Cronykil of
Andrew of Wyntoun (c. 1350 – c. 1423), an early source for
Scottish history, names "Ebrawce" (
Ebraucus), a
legendary King of the Britons, as having "byggyd [built] Edynburgh". According to the earlier chronicler,
Geoffrey of Monmouth (c. 1100 – c. 1155), Ebraucus had fifty children by his twenty wives, and was the founder of "Kaerebrauc" (
York), "Alclud" (
Dumbarton) and the "Maidens' Castle". The 16th-century English writer
John Stow (c. 1525 – 1605), credited Ebraucus with building "the Castell of Maidens called Edenbrough" in 989 BC. The name "Maidens' Castle" ( or '''') occurs frequently up until the 16th century. It appears in charters of
David I (r. 1124–1153) and his successors in the
Kingdom of Scotland, although the reason for it is not known.
William Camden's survey of Britain,
Britannia (1607), records that "the Britans called [it] Castle Myned Agned [winged rock], the Scots, the Maidens Castle and the Virgins Castle, of certaine young maidens of the Picts roiall bloud who were kept there in old time". According to the 17th-century antiquarian Father Richard Hay, the "maidens" were a group of nuns, who were ejected from the castle and replaced by
canons, considered "fitter to live among soldiers". However, this story was considered "apocryphal" by the 19th-century antiquarian
Daniel Wilson and has been ignored by historians since. The name may have been derived from a "Cult of the Nine Maidens" type of legend.
Arthurian legends suggest that the site once held a shrine to
Morgain la Fee, one of nine sisters. Later, St Monenna, said to be one of nine companions, reputedly invested a church at Edinburgh, as well as at Dumbarton and other places.
Similar names are shared by many other
Iron Age hillforts and may have simply described a castle that had never been taken by force or derived from an earlier
Brittonic name like
mag dun. An archaeological excavation in the early 1990s uncovered evidence of the site having been settled during the late
Bronze Age or early
Iron Age, potentially making Castle Rock the longest continuously occupied site in Scotland. However, the extent of the finds was not particularly significant and insufficient to draw any certain conclusions about the precise nature or scale of this earliest known phase of occupation. The archaeological evidence is more reliable concerning the Iron Age. Traditionally, it had been supposed that the
tribes of central Scotland had made little or no use of the Castle Rock. Excavations at nearby
Dunsapie Hill,
Duddingston,
Inveresk and
Traprain Law had revealed relatively large settlements and it was supposed that these sites had been chosen in preference to the Castle Rock. However, the excavation in the 1990s pointed to the probable existence of an enclosed
hillfort on the rock, although only the fringes of the site were excavated. House fragments revealed were similar to Iron Age dwellings previously found in Northumbria. The 1990s dig revealed clear signs of habitation from the 1st and 2nd centuries AD, consistent with
Ptolemy's reference to "Alauna". Signs of occupation included some
Roman material, including pottery, bronzes and brooches, implying a possible trading relationship between the Votadini and the Romans beginning with
Agricola's northern campaign in AD 82, and continuing through to the establishment of the
Antonine Wall around AD 140. The nature of the settlement in this period is inconclusive, but Driscoll and Yeoman suggest it may have been a
broch, similar to the one at
Edin's Hall near
Duns in the
Scottish Borders.
Early Middle Ages The castle does not re-appear in contemporary historical records from the time of Ptolemy until around AD 600. Then, in the epic
Welsh poem
Y Gododdin there is a reference to Din Eidyn, "the stronghold of
Eidyn". This has been generally assumed to refer to the Castle Rock. The poem tells of the
Gododdin King
Mynyddog Mwynfawr, and his band of warriors, who, after a year of feasting in their fortress, set out to do battle with the
Angles at "Catreath" (possibly
Catterick) in Yorkshire. Despite performing glorious deeds of valour and bravery, the poem relates that the Gododdin were massacred. The
Irish annals record that in 638, after the events related in
Y Gododdin, "Etin" was besieged by the Angles under
Oswald of Northumbria, and the Gododdin were defeated. The territory around Edinburgh then became part of the
Kingdom of Northumbria, which was itself absorbed by
England in the 10th century. Lothian became part of Scotland, during the reign of
Indulf (r.954–962). The archaeological evidence for the period in question is based entirely on the analysis of
middens (domestic refuse heaps), with no evidence of structures. Few conclusions can therefore be derived about the status of the settlement during this period, although the midden deposits show no clear break since Roman times.
High Middle Ages , depicted in a stained glass window in the chapel of Edinburgh Castle The first documentary reference to a castle at Edinburgh is
John of Fordun's account of the death of
King Malcolm III (1031–1093). Fordun describes his widow, the future
Saint Margaret, as residing at the "Castle of Maidens" when she is brought news of his death in November 1093. Fordun's account goes on to relate how Margaret died of grief within days, and how Malcolm's brother
Donald Bane laid siege to the castle. However, Fordun's chronicle was not written until the later 14th century, and the near-contemporary account of the life of St Margaret by
Bishop Turgot makes no mention of a castle. During the reigns of Malcolm III and his sons, Edinburgh Castle became one of the most significant royal centres in Scotland. Malcolm's son
King Edgar died here in 1107. Malcolm's youngest son,
King David I (r.1124–1153), developed Edinburgh as a seat of royal power principally through his administrative reforms (termed by some modern scholars the
Davidian Revolution). Between 1139 and 1150, David held an assembly of nobles and churchmen, a precursor to the
parliament of Scotland, at the castle. Given that the southern part of the Upper Ward (where Crown Square is now sited) was not suited to be built upon until the construction of the vaults in the 15th century, it seems probable that any earlier buildings would have been located towards the northern part of the rock; that is around the area where St. Margaret's Chapel stands. This has been suggested that the chapel is the last remnant of a square, stone keep, which would have formed the bulk of the 12th-century fortification. The structure may have been similar to the keep of
Carlisle Castle, which David I began after 1135. David's successor
King Malcolm IV (r.1153–1165) reportedly stayed at Edinburgh more than at any other location. By the end of the 12th century, Edinburgh Castle was established as the main repository of Scotland's official state papers.
Wars of Scottish Independence A century later, in 1286, on the death of
King Alexander III, the throne of Scotland became vacant.
Edward I of England was appointed to adjudicate the
competing claims for the Scottish crown, but used the opportunity to attempt to establish himself as the feudal overlord of Scotland. During the negotiations, Edward stayed briefly at Edinburgh Castle and may have received homage there from the Scottish nobles. In March 1296, Edward I invaded Scotland, unleashing the
First War of Scottish Independence. Edinburgh Castle soon came under English control, surrendering after a three-day-long bombardment. Following the siege, Edward had many Scottish legal records and royal treasures moved from the castle to England. Edward also brought to Scotland his master builders of the Welsh castles, including Thomas de Houghton and Master Walter of Hereford, both of whom travelled from Wales to Edinburgh. After the death of Edward I in 1307, however, England's control over Scotland weakened. On 14 March 1314, a surprise night attack by
Thomas Randolph, 1st Earl of Moray recaptured the castle.
John Barbour's narrative poem
The Brus relates how a party of thirty hand-picked men was guided by one William Francis, a member of the garrison who knew of a route along the north face of the Castle Rock and a place where the wall might be scaled. Making the difficult ascent, Randolph's men scaled the wall, surprised the garrison and took control.
Robert the Bruce immediately ordered the
slighting of the castle to prevent its re-occupation by the English. Four months later, his army secured victory at the
Battle of Bannockburn. After Bruce's death in 1329,
Edward III of England determined to renew the attempted subjugation of Scotland and supported the claim of
Edward Balliol, son of the former King
John Balliol, over that of Bruce's young son
David II. Edward invaded in 1333, marking the start of the
Second War of Scottish Independence, and the English forces reoccupied and refortified Edinburgh Castle in 1335,
David's Tower and the 15th century The 1357
Treaty of Berwick brought the Wars of Independence to a close. David II resumed his rule and set about rebuilding Edinburgh Castle which became his principal seat of government. David's Tower was begun around 1367, and was incomplete when David died at the castle in 1371. It was completed by his successor,
Robert II, in the 1370s. The tower stood on the site of the present Half Moon Battery connected by a section of
curtain wall to the smaller Constable's Tower, a round tower built between 1375 and 1379 where the Portcullis Gate now stands. , showing David's Tower at the centre In the early 15th century, another English invasion, this time under
Henry IV, reached Edinburgh Castle and began a siege, but eventually withdrew due to lack of supplies. and soon after became
Chancellor of Scotland. In an attempt to gain the
regency of Scotland, Crichton sought to break the power of the
Douglases, the principal noble family in the kingdom. The 16-year-old
William Douglas, 6th Earl of Douglas, and his younger brother David were summoned to Edinburgh Castle in November 1440. After the so-called "Black Dinner" had taken place in David's Tower, both boys were summarily executed on trumped-up charges in the presence of the 10-year-old
King James II (r.1437–1460). Douglas' supporters subsequently besieged the castle, inflicting damage. Construction continued throughout this period, with the area now known as Crown Square being laid out over
vaults in the 1430s. Royal apartments were built, forming the nucleus of the later palace block, and a Great Hall was in existence by 1458. In 1464, access to the castle was improved when the current approach road up the north-east side of the rock was created to allow easier movement of the royal artillery train in and out of the area now known as the Upper Ward. The first known purchase of a gun was in 1384, and the "great
bombard"
Mons Meg was delivered to Edinburgh in 1457. The first recorded mention of an
armoury for the manufacture of guns occurs in 1474, and by 1498 the master gunner Robert Borthwick was casting bronze guns at Edinburgh. By 1511 Edinburgh was the principal foundry in Scotland, supplanting Stirling Castle, with Scottish and European smiths working under Borthwick, who by 1512 was appointed "master melter of the king's guns". Their output included guns for the Scottish flagship, the "
Great Michael", and the "Seven Sisters", a set of cannons captured by the English at
Flodden in 1513. Sir Thomas Howard, England's Lord Admiral, admired their graceful shape and brilliant finish, declaring them the most beautiful [cannon] for their size and length that he had ever seen. From 1510 Dutch craftsmen were also producing
hand culverins, an early
firearm. After Flodden, Borthwick continued his work, producing an unknown number of guns, but none have survived. He was succeeded by French smiths, who began manufacturing
hagbuts (another type of firearm) in the 1550s, and by 1541 the castle had a stock of 413. Meanwhile, the royal family began to stay more frequently at the
Abbey of Holyrood, about from the castle. Around the end of the fifteenth century,
King James IV (r.1488–1513) built the
Palace of Holyroodhouse, by the abbey, as his principal Edinburgh residence and the castle's role as a royal home subsequently declined. His daughter
Margaret Stewart was lodged in the castle with her servant
Ellen More.
16th century and the Lang Siege James IV was killed in battle at
Flodden Field, on 9 September 1513. Expecting the English to press their advantage, the Scots hastily constructed a
town wall around Edinburgh and augmented the castle's defences. Robert Borthwick and a Frenchman,
Antoine d'Arces, were involved in designing new artillery defences and fortifications in 1514, though it appears from lack of evidence that little of the planned work was carried out. Three years later,
King James V (r.1513–1542), still only five years old, was brought to the castle for safety. In 1547 disaffected members of the garrison who resented
Regent Arran came to
Norham Castle and offered to let the English in. Refortification in 1548 included an earthen angle-bastion, known as the Spur, of the type known as
trace italienne, one of the earliest examples in Britain. The Spur may have been designed by
Migliorino Ubaldini, an Italian engineer from the court of
Henry II of France, and was said to have the
arms of France carved on it. James V's widow,
Mary of Guise, acted as
regent from 1554 until her death at the castle in 1560. Mary's reign was, however, brought to an abrupt end. Three months after the
murder of Darnley at Kirk o' Field in 1567, she married
James Hepburn, 4th Earl of Bothwell, one of the chief murder suspects. A large proportion of the nobility rebelled, resulting ultimately in the imprisonment and
forced abdication of Mary at
Lochleven Castle. She escaped and fled to
England, but some of the nobility remained faithful to her cause. Edinburgh Castle was initially handed by its captain,
James Balfour, to the
Regent Moray, who had forced Mary's abdication and now held power in the name of the infant King James VI. Shortly after the
Battle of Langside, in May 1568, Moray appointed
Sir William Kirkcaldy of Grange Keeper of the Castle. The stand-off which followed was not resolved until two years later, and became known as the "Lang Siege", from the
Scots word for "long". Hostilities began in May, with a month-long siege of the town, and a second short siege in October. Blockades and skirmishing continued meanwhile, and Grange continued to refortify the castle. The King's party appealed to
Elizabeth I of England for assistance, as they lacked the artillery and money required to reduce the castle, and feared that Grange would receive aid from France and the
Duke of Alba in the
Spanish Netherlands. Elizabeth sent ambassadors to negotiate, and in July 1572 a truce was agreed and the blockade lifted. The town was effectively surrendered to the King's party, with Grange confined to the castle. The truce expired on 1 January 1573, and Grange began bombarding the town. His supplies of powder and shot, however, were running low, and despite having 40 cannons available, there were only seven gunners in the garrison. The King's forces, now with the
Earl of Morton in charge as regent, were making headway with plans for a siege. Trenches were dug to surround the castle, and St Margaret's Well was poisoned. By February, all Queen Mary's other supporters had surrendered to the Regent, but Grange resolved to resist despite water shortages within the castle. The garrison continued to bombard the town, killing a number of citizens. They also made sorties to set fires, burning 100 houses in the town and then firing on anyone attempting to put out the flames. In April, a force of around 1,000 English troops, led by
Sir William Drury, arrived in Edinburgh. They were followed by 27 cannons from
Berwick-upon-Tweed, On 26 May, the English attacked and captured the Spur, the outer fortification of the castle, which had been isolated by the collapse. The following day Grange emerged from the castle by a ladder after calling for a ceasefire to allow negotiations for a surrender to take place. When it was made clear that he would not be allowed to go free even if he ended the siege, Grange resolved to continue the resistance, but the garrison threatened to mutiny. He therefore arranged for Drury and his men to enter the castle on 28 May, preferring to surrender to the English rather than the Regent Morton. Edinburgh Castle was handed over to
George Douglas of Parkhead, the Regent's brother, and the garrison was allowed to go free. In contrast, Kirkcaldy of Grange, his brother James and two jewellers,
James Mossman and
James Cokke, who had been minting coins in Mary's name inside the castle, were hanged at the
Cross in Edinburgh on 3 August.
Nova Scotia and Civil War Much of the castle was subsequently rebuilt by Regent Morton, including the Spur, the new Half Moon Battery and the Portcullis Gate. Some of these works were supervised by
William MacDowall, the master of work who fifteen years earlier had repaired David's Tower. The Half Moon Battery, while impressive in size, is considered by historians to have been an ineffective and outdated artillery fortification. This may have been due to a shortage of resources, although the battery's position obscuring the ancient David's Tower and enhancing the prominence of the palace block, has been seen as a significant decision. The battered palace block remained unused, particularly after James VI departed to become King of England in 1603. James had repairs carried out in 1584, and in 1615–1616 more extensive repairs were carried out in preparation for his return visit to Scotland. The mason
William Wallace and master of works
James Murray introduced an early Scottish example of the double-pile block. The principal external features were the three, three-storey
oriel windows on the east façade, facing the town and emphasising that this was a palace rather than just a place of defence. During his visit in 1617, James held court in the refurbished palace block, but still preferred to sleep at Holyrood. James' successor,
King Charles I, visited Edinburgh Castle only once, hosting a feast in the Great Hall and staying the night before his Scottish coronation in 1633. This was the last occasion that a reigning monarch resided in the castle. In May 1650, the Covenanters signed the
Treaty of Breda, allying themselves with the exiled
Charles II against the
English Parliamentarians, who had executed his father the previous year. In response to the Scots proclaiming Charles King,
Oliver Cromwell launched an invasion of Scotland, defeating the Covenanter army at
Dunbar in September. Edinburgh Castle was taken after a three-month siege, which caused further damage. The Governor of the Castle, Colonel Walter Dundas, surrendered to Cromwell despite having enough supplies to hold out, allegedly from a desire to change sides. The medieval royal castle was transformed into a garrison fortress, but continued to see military and political action. The
Marquis of Argyll was imprisoned here in 1661, when
King Charles II settled old scores with his enemies following his return to the throne. Twenty years later, Argyll's son, the
9th Earl of Argyll, was also imprisoned in the castle for religious
Nonconformism in the reign of
King James VII. He escaped by disguising himself as his sister's
footman, but was recaptured and returned to the castle after his failed rebellion to oust James from the throne in 1685. Gordon agreed. During the ensuing siege the defenders, at times, conducted a spirited defence: a report in April noted that "Mackay’s men [the besiegers], and the Castle, fire fiercely one at the other". At some other times, however, especially in the latter stages of the siege, Gordon refused to fire upon the town. The besiegers inflicted little damage on the castle. Despite Dundee's initial successes in the north, Gordon eventually surrendered on 14 June, due to dwindling supplies and having lost 70 men during the three-month siege. The castle was almost taken in the
first Jacobite rising in support of
James Stuart, the "Old Pretender", in 1715. On 8 September, just two days after the rising began, a party of around 100 Jacobite Highlanders, led by
Lord Drummond, attempted to scale the walls with the assistance of members of the garrison. However, the rope ladder lowered by the castle sentries was too short, and the alarm was raised after a change of the watch. The Jacobites fled, while the deserters within the castle were hanged or flogged. In 1728,
General Wade reported that the castle's defences were decayed and inadequate, The last military action at the castle took place during the
second Jacobite rising of 1745. The Jacobite army, under
Charles Edward Stuart ("Bonnie Prince Charlie"), captured Edinburgh without a fight in September 1745, but the castle remained in the hands of its ageing Deputy Governor, General
George Preston, who refused to surrender. After their victory over the government army at
Prestonpans on 21 September, the Jacobites attempted to blockade the castle. Preston's response was to bombard Jacobite positions within the town. After several buildings had been demolished and four people killed, Charles called off the blockade. The Jacobites themselves had no heavy guns with which to respond, and by November they had marched into England, leaving Edinburgh to the castle garrison. Over the next century, the castle vaults were used to hold prisoners of war during several conflicts, including the
Seven Years' War (1756–1763), the
American War of Independence (1775–1783) and the
Napoleonic Wars (1803–1815). During this time, several new buildings were erected within the castle, including powder magazines, stores, the Governor's House (1742), and the New Barracks (1796–1799).
19th century to the present A mass prison break in 1811, in which 49 prisoners of war escaped via a hole in the south wall, persuaded the authorities that the castle vaults were no longer suitable as a prison. This use ceased in 1814 and the castle began gradually to assume a different role as a national monument. In 1818,
Sir Walter Scott was given permission to search the castle for the
Crown of Scotland, believed lost after the union of Scotland and England in 1707. Breaking into a sealed room, now known as the Crown Room, and unlocking a chest within, he rediscovered the
Honours of Scotland, which were then put on public display with an entry charge of one
shilling. In 1822, King
George IV made a
visit to Edinburgh, becoming the first reigning monarch to visit the castle since Charles II in 1651. In 1829, the cannon Mons Meg was returned from the Tower of London, where it had been taken as part of the process of disarming Scotland after "the '45", and the palace began to be opened up to visitors during the 1830s. St Margaret's Chapel was "rediscovered" in 1845, having been used as a store for many years. (later
Gordon Highlanders) while on garrison duty at the castle in 1845 File:Edinburgh Castle by Thomas Keith.jpg|left|thumb|Edinburgh Castle, waxed-paper negative by Thomas Keith, c. 1855. Department of Image Collections, National Gallery of Art Library, Washington DC In 1905, responsibility for the castle was transferred from the
War Office to the
Office of Works, although the garrison remained until 1923, when the troops moved to
Redford Barracks in south-west Edinburgh. The castle was again used as a prison during the First World War, when "
Red Clydesider"
David Kirkwood was confined in the military prison block, and during the Second World War, when downed German
Luftwaffe pilots were captured. The position of
Governor of Edinburgh Castle, vacant since 1876, was revived in 1935 as an honorary title for the
General Officer Commanding in Scotland, the first holder being Lieutenant-General Sir Archibald Cameron of Lochiel. The castle passed into the care of
Historic Scotland when it was established in 1991, and was designated a
Scheduled Ancient Monument in 1993. The buildings and structures of the castle are further protected by 24 separate
listings, including 13 at
category A, the highest level of protection for a historic building in Scotland, and special care was taken when installing 31 kW
solar panels on the roof of the War Memorial, obscured by its parapet. The
Old and
New Towns of Edinburgh, a
World Heritage Site inscribed by
UNESCO in 1995, is described as "dominated by a medieval fortress". == Description ==