Castles

Edinburgh Castle: attacks and sieges

Written 22 November 2026.

In brief. Edinburgh Castle has a longer record of attack than any other place in this collection. The historian David Caldwell, who has written the fullest account read here, says it "appears to be the most besieged place in Great Britain",1 and the body that runs it says the same in its own words.2 The count depends on who is counting: 16 for 1093 to 1544 alone,1 23,3 or 26.4,5 This entry sets out about two dozen episodes. The castle was taken by surprise or trickery three times (1314, 1341, 1639), battered into surrender once (1573), and given up on terms after blockade, bombardment or failing supplies six times (1296, 1445, 1482, 1640, 1650, 1689). It held against Henry IV in 1400, the Earl of Hertford in 1544 and the Jacobites in 1715 and 1745. Thirst did more harm to its defenders than any gun (that summing up is ours, not a source's).

At a glance

WhenAttackerDefenderNumbersHow it was foughtResult
November 1093Donald Ban, the dead king's half-brotherThe household of Queen Margaret"A sizeable army";1 no figureSiege aimed at the main gates1The heirs escaped by a back gate; whether the castle fell is not given
June 1296Edward I of EnglandA Scottish garrison under a constableThree engines, "158 stones";1 men not givenStone-throwing engines for three days and nights, then a pause to ask for help1Taken (surrender)
14 March 1314Thomas Randolph, Earl of MorayEnglish garrison30 climbers; garrison "about 200" by a return of 1311 to 13121Night climb of the north face with a rope ladder, and a feint at a gate1Taken
July 1335Scots under John Randolph, Earl of MorayGuy, Count of Namur, on the ruined rockNamur: "seven or eight knights and 100 men-at-arms"1A running fight, then a night behind a wall of dead horses1Namur gave in on terms
October 1337Sir Andrew MurrayEnglish garrisonNot givenSiege, lifted when a relieving army came1Held
April 1341William Douglas of LiddesdaleEnglish garrison12 men in disguise and a hidden force, from 200 on a ship; garrison 1151Men posing as merchants jammed the gate open1,4Taken
August 1400Henry IV of EnglandArchibald, Earl of Douglas, and the Duke of RothesayNot givenAssault over three days1Held
1445Forces acting for James IISir William CrichtonNot givenSiege of nine weeks1Given up by treaty
1482The Duke of Albany and the people of EdinburghThe king's keepersNot givenSiege; the castle ran out of food1Taken (surrender)
May 1544English under the Earl of HertfordThe castle's gunnersEnglish reinforced by "4000" border horse1One battery, knocked out by the castle's guns1Held
1571 to May 1573Regents for James VI, then an English army under Sir William DrurySir William Kirkcaldy of Grange, for Queen Mary1573: 1,000 English soldiers, 300 pioneers and 500 Scots against "not much more than 200"6Blockade, a poisoned well, then 12 days of cannon and the storming of an outwork6,4Taken (surrender)
21 March 1639Covenanters under Alexander LeslieArchibald Haldane, constable"1,000 musketeers";7 garrison not givenA talk at the gate, an explosive charge, and a rush7Taken in half an hour
June to September 1640CovenantersPatrick Ruthven, Lord Ettrick, for Charles ITwo regiments of foot against "above 300 men"7Four batteries, a mine and a failed assault, then blockade7Taken (surrender)
September to December 1650Oliver CromwellColonel Walter DundasNot givenA mine that failed, then guns and mortars7Taken (surrender)
March to June 1689Forces of the Convention of Estates, for William of OrangeThe Duke of Gordon, for James VII"7,000 troops against a garrison of 160 men";4 or "6-7,000" volunteers against 1278Blockade, trenches, cannon and mortars7Taken (surrender)
September 1715Jacobites under Lord DrummondThe government garrison"About 80 to 90 men",7 or "around 100"4Night climb with rope ladders and help from inside7Held
September to November 1745The army of Charles Edward StuartGeorge Preston and Joshua GuestNot givenBlockade, answered by the castle's guns7Held

Smaller episodes (1255, 1337, 1416, 1440, 1525, 1547, 1559 and 1560) and the handovers by treaty (1174, 1186, 1639) are set out in their own section below.

Before the castle: Din Eidyn

The rock was a stronghold long before there was a castle on it. In the 7th century it was Din Eidyn, held by a warlord of the Gododdin, "before it was seized by the Northumbrians later in the century and renamed Edinburgh".5 Wikipedia gives a date: the Irish annals record that in 638 "Etin" was besieged by the Angles under Oswald of Northumbria.4 Nothing more about that siege is given in the sources read.

1093: Donald Ban (the heirs escape)

Queen Margaret, wife of Malcolm III, lay dying in the castle in November 1093 when her son brought word that the king had been killed in England.1 She died soon after, and the castle "was besieged by the king's half-brother, Donald Ban".1 He "knew that the king's rightful and lawful heirs were in the castle" and meant to be king himself.1

He watched the wrong side. Donald "had concentrated his efforts on the main gates", thinking the rock made any other way out impossible.1 The queen's body is said to have been carried out through "an unwatched postern gate on the west side", and the rest of her family fled.1

The record

1296: Edward I (taken by surrender)

In June 1296 Edward I besieged the castle, which was held by "a Scottish garrison under a constable".1 He "had brought up large stone throwing engines which were positioned all round the castle",1 and the bombardment went on "by three engines for three days and nights, starting about 8 June, during which 158 stones were fired".1

Then the king stopped. He let the garrison send to their own king, John, at Forfar, to ask for help, and marched on to Stirling while they waited.1 John "could offer no prospect of relieving the siege".1 So "on the 15th day of the siege the castle was surrendered to the English commander, Sir John Le Despenser".1

The English carried off what the castle held: "the country's archives, crown jewels and other treasures".1

The record

1314: Thomas Randolph's night climb (taken)

Randolph, Earl of Moray and nephew of Robert the Bruce,2 "was already besieging the English garrison in the castle" when news came that James Douglas had taken Roxburgh Castle with ladders in the dark.1 That stung him into a plan of his own. He had with him William Francis, who said that "for the love of a woman he had nightly scaled the castle wall with a rope ladder".1

While "a diversionary attack was made on the south gate", a party of 30, the earl among them, climbed the north face of the rock in the dark.1 Halfway up they rested, and a sentry above, "showing off to his colleagues, threw a stone down at imaginary enemies".1 The sentries moved on. The climbers went up the last stretch and over a wall "12 feet (3.66 m) high" by rope ladder.1

The alarm was raised before they were all in. The English constable was killed in the fight, and his men "turned and fled".1 King Robert then had the castle destroyed so that it could not be used against him.1

The record

1335 and 1337: a count on the ruined rock, and a siege that was relieved

The castle "was still in ruins" in July 1335 when Guy, Count of Namur, a kinsman of the English queen, was chased onto the rock by Scots under John Randolph, Earl of Moray.1 He had "seven or eight knights and 100 men-at-arms".1 His party "killed their horses and made a rampart with their bodies", held out behind it all night, and "capitulated the next morning on terms".1 The Scots restored their goods and cancelled their ransoms, out of regard for the king of France.1

In 1335 the English "reoccupied and refortified" the castle.4 In October 1337 Sir Andrew Murray, Guardian of Scotland, besieged the English garrison "but was forced to lift the siege by the arrival of a relieving army".1

The record

1341: the false merchants (taken)

William Douglas of Liddesdale took the castle "by subterfuge".1 A ship belonging to Walter Curry, an Edinburgh burgess, was "loaded with a force of 200 chosen men" and sailed into the Forth.1 Curry "pretended to be an English merchant" with wine, grain and beer to sell, and the captain of the castle agreed to let him in the next morning.1

Curry came "with two horses loaded with baskets and casks, and twelve men, their armour concealed by cloaks".1 The gate was opened. His men killed the gatekeeper and his two assistants and blew a horn.1 Curry "contrived to jam a stake under the portcullis to stop it being dropped", and threw his baskets and casks down in the way.1 Douglas's main force, hidden close by, rushed in.1

"A violent fight ensued in which the garrison was totally defeated".1

The record

1400: Henry IV (held)

In August 1400 Henry IV of England came by Haddington to Leith with an army "supplied by a fleet", and revived the English claim to be overlord of Scotland.1 According to the chronicler Bower, the castle "was assaulted from 15 to 17 August".1 It was commanded by Archibald, Earl of Douglas, joined by the heir to the throne, the Duke of Rothesay.1 A Scottish army lay "less than a day's march away".1

"It was the English that blinked first."1 Short of supplies and low in spirit, they crossed back into England on 29 August "with nothing achieved".1

The record

1445 and 1482: sieges among the Scots themselves

In 1445 the castle was besieged on behalf of the young James II. Sir William Crichton, chancellor and captain of the castle, "held out in the castle for nine weeks" before giving it up "through treaty".1 He kept much of his standing, which suggests to Caldwell that the king's side "lacked the power to dislodge him".1

In 1482 James III was himself shut up in the castle by his own nobles.1 His brother the Duke of Albany, with the people of Edinburgh, besieged it to free him, and it "surrendered through lack of victuals".1

The record

1544: Hertford's gunners (held)

Henry VIII sent the Earl of Hertford north with orders that included "the destruction of Edinburgh and the taking of the castle".1 Most of the army came by sea and landed on 4 May.1 The English battered in a town gate with a great gun, a culverin, and then turned it on the castle.1

"The gunners in the castle successfully dismounted the English culverin which then had to be blown up to prevent it falling into Scottish hands."1 The English burned what they could of the town and went home, and "no further attempt was made against the castle".1

The record

1571 to 1573: the Lang Siege (taken)

Sir William Kirkcaldy of Grange had been made captain of the castle by the party that deposed Queen Mary.6 He then "changed sides, occupying the town and castle of Edinburgh for Queen Mary".4 The stand-off that followed "became known as the" Lang Siege, from the Scots word for long.4

For two years the king's party could not shift him. In May 1571 the Regent Lennox planted three guns on Calton Hill.6 In October the Regent Mar brought "10 battering pieces" and gave up "after twelve days' effort".6 A truce in July 1572 left Kirkcaldy the castle and gave up the town.6,4 It was clear that the king's men "lacked the power" to root him out without English help.6

In 1573 the help came: "1000 soldiers and 300 pioneers under the command of Sir William Drury", with heavy guns.6 By then the castle's wells had failed and the well outside the walls had been poisoned.6 Kirkcaldy's "whole force was probably by now not much more than 200, many of whom were not soldiers".6 The guns opened on 17 May.6,4 Part of David's Tower came down on 22 May.6 On 26 May the English stormed the Spur, the great outwork in front of the castle, with ladders.6 The castle "was surrendered on 28 May into the hands of the English".6

The record

1639: Leslie's half hour (taken)

On 21 March 1639 Alexander Leslie, general of the Covenanters, went up to the castle "between four and five in the afternoon to parley" with its constable, Archibald Haldane.7 The Covenanters were Scots bound by a pledge of 1638 to defend their church against the changes King Charles I wanted.3 With Leslie were other officers and Edinburgh's companies of "1,000 musketeers".7

Haldane would not give way. "Before Leslie and his party withdrew a petard was attached to the outer gate".7 A petard was "an explosive device designed to blow open a gate".7 When it went off, the two inner gates were attacked "with axes, hammers" and ladders "while the walls were scaled".7 The garrison "attempted no resistance and the castle was taken within half an hour".7

The record

1640: mine, breach and blockade (taken by surrender)

The king's new commander was Patrick Ruthven, Lord Ettrick, "a very experienced soldier".7 He had "a garrison of above 300 men", many guns, and food for six months or more.7 In early June 1640 he fired into the town, and the siege began.7

The Covenanters set up four batteries, the nearest "only about 60 paces away from the Spur".7 Their plan was "to explode a mine under the Spur" and send a storming party through the gap.7 Ruthven's guards heard the digging. He pulled his men and "his six cannon" back behind the inner gate "just in time".7

The mine went off, the breach was narrow, and the stormers had to use ladders.7 Once inside they were caught in the open in front of a waiting garrison. The castle's keepers quote the old phrase: "like silly mice in a trap".3 Of "the 125 plus officers and pioneers" their leader took into the Spur, "he returned with only 33".7

"After this the castle was merely blockaded."7 The garrison's fresh water "had given out as early as 6 June".7 Ruthven surrendered on 15 September and marched out three days later with "his remaining 137 men", colours flying.7

The record

1650: Cromwell and the governor who would not fire (taken by surrender)

After his victory at Dunbar on 3 September 1650, Cromwell held the town of Edinburgh and besieged the castle.7 Its commander was Colonel Walter Dundas.7 Cromwell was told it was provisioned "for at least 15 months".7

He chose to mine, "using Scottish colliers and miners from Derbyshire".7 The castle's master gunner tilted his guns to fire downhill, and "a volley fired by six cannon together caused part of the mine to collapse".7

Cromwell then built a battery on the Castlehill with "large siege guns and mortars", ready by 12 December.7 Dundas "had forbidden his guns to be fired", telling his master gunner "that he had already shed too much blood".7 Terms were agreed on 19 December, and "on Christmas Eve he walked away from a castle that had suffered little damage".7

The record

1689: the Duke of Gordon (taken by surrender)

When James VII was driven out, the castle's governor, the Duke of Gordon, "steadfastly refused to surrender control of the Castle" to the Convention of Estates.8 On 18 March 1689 Viscount Dundee, on his way to raise the Highlands for James, spoke with him at the castle and urged him to hold on.7,8

Gordon had let every man go who would not back him without reserve, which left "only six officers and about 120 sentinels (privates), and crucially, no cannoneers".7 The first besiegers were Presbyterian volunteers who did little harm.8 On 25 March professional soldiers of the Scots-Dutch Brigade took over.7,8 They dug batteries to the west, south and north and a trench to cut the castle off.7,8 The west battery made a breach, "although the steepness of the hill made an assault seem impractical".7 From 19 May mortars dropped shells into the castle, "as many as 40" in a night, and the garrison moved into the vaults.7

No assault ever came. By 9 June the garrison was "much diminished", many of them "sick from drinking dirty water", with food, drink and powder almost gone.7 Gordon came to terms.

The record

1715: the ladders that were too short (held)

The Jacobite rising of 1715 began with a plan to take the castle by night. Lord Drummond ran it. A sergeant, William Ainslie, and two privates inside had been bribed to help the climbers fix "the grappling irons on their rope ladders" at the western defences.7 The force was "about 80 to 90 men", 40 of them Highlanders.7

It went wrong at every step. Some of the ladders were late, and the man in charge of them was said to be "too interested in drinking to hurry things along".7 The party went ahead without them and "discovered that their ladders were too short by over a fathom".7 Meanwhile the plan had leaked. The city guard marched to the spot and caught them "red-handed".7 They "offered no resistance, dropping their weapons and fleeing".7

The record

1745: the last threat (held)

Prince Charles Edward Stuart took the town of Edinburgh "almost unopposed" on 17 September 1745.7 The castle stayed out of his hands. It was commanded by George Preston, "a veteran Scotsman then 86 years old", joined by "the 85 year old General Joshua Guest".7 It "was not seriously threatened, being well supplied and the Jacobites lacking time and siege guns".7

At first people came and went. On 29 September a letter was found hidden in butter being carried in, and the Jacobites closed the way.7 Guest threatened to use the castle's guns on the Highland guards and so on the town.7 After Jacobites shot at people carrying food, the castle opened fire on 2 October.7 It fired again all day on 4 October; that night the garrison came out, burned houses, and set field guns to sweep the High Street.7 The next evening the prince restored free passage.7 The Jacobites marched for England on 1 November.7

The record

Handovers and smaller episodes

Changes of hands without fighting

Smaller episodes

After 1745. The vaults held prisoners of war; in 1811 "49 French prisoners of war" broke out through a hole in the wall.2 In 1939 German airmen shot down over the Forth were treated in the castle's hospital.2 No source read records an attack on the castle after 1745.

What held and what failed

TacticUsed against EdinburghDid it work?
Stone-throwing engines1296Three days of it did not break in; the garrison gave up when no help came1
Climbing the rock at night1314; 1715Yes in 1314, with a guide who knew the way;1 no in 1715, when the ladders were short and the plan had leaked7
Disguise and a jammed gate1341Yes1
Entering by pretence1255Yes: the English king's agents got in unchallenged1
Open assault1400No1
A single gun battery1544No: the castle's gunners knocked it out1
Blockade until food or water ran out1482; 1571 to 1572; 1640; 1689; 1745Yes in 1482, 1640 and 1689;1,7 not by itself in 1571 to 1572;6 no in 17457
Poisoning or cutting the water1573; 1689It weakened the garrison both times6,7
Massed cannon1573Yes: the first time the castle was beaten down by guns6
Mining1573; 1640; 1650No in 1573 and 1650;6,7 in 1640 it made a breach, and the assault through it was cut to pieces7
Explosive charge on the gate, by surprise1639Yes, in half an hour7
Mortars1650; 1689They wrecked buildings in 1689 but did not by themselves force the surrender7
Bribing men inside1715It got help on the wall, and still failed7

The castle's keepers draw the same lesson about water: when the wells "were clogged, sabotaged or poisoned, the defenders were forced to surrender or die".5 They add that "most sieges were successful".5

Not yet established

About this entry

Each attack is told first as a short story and then set out as a record. The story adds nothing the record does not have: the narrator chooses the order and the emphasis, never the facts. Every statement has a numbered note that leads to its source. Anything that is our own reading is said to be ours. Where two sources disagree, the record gives both. "Not given" means none of the sources read says; it does not mean it is unknown to historians.

Sources

  1. Edinburgh Castle Under Siege 1093–1544, by David H. Caldwell, Journal of the Sydney Society for Scottish History, volume 16 (2016). A peer-reviewed journal hosted by the University of Sydney Library; the author was at National Museums of Scotland. A PDF file, read in full as extracted text.
  2. History, Edinburgh Castle. The castle's own site, run by Historic Environment Scotland, which looks after the castle. Read as extracts and then in full as page text.
  3. Kings of the Castle or dirty rascals?, Edinburgh Castle blog. Historic Environment Scotland, 6 October 2015, no author named. Read in full. Covers only 1639 and 1640; the page breaks off before the end of the 1640 siege.
  4. Edinburgh Castle, Wikipedia. This is Wikipedia. History sections read in full.
  5. Castle beginnings, Edinburgh Castle blog. Historic Environment Scotland, 22 May 2020, no author named. Read in full.
  6. Edinburgh Castle under Siege 1559–1573, by David H. Caldwell, Journal of the Sydney Society for Scottish History, volume 17 (2018). The second part of the same study. A PDF file, read in full as extracted text.
  7. Edinburgh Castle Under Siege 1639-1745, by David H. Caldwell, Journal of the Sydney Society for Scottish History, volume 18 (2019). The third part. A PDF file, read in full as extracted text.
  8. Edinburgh Castle under siege, 1689, by Dr Graeme S. Millen, Old Edinburgh Club. The city's local history society; the author's doctorate is on this war. Read in full. Covers only 1689.
  9. Edinburgh Castle: history and stories, Historic Environment Scotland. Read as extracts. Used for 1314 and for the "most besieged in all Europe" wording.