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. James VII was deposed and exiled by the Glorious Revolution of 1688, which installed William of Orange as King of England. Not long after, in early 1689, the Estates of Scotland, after convening to accept William formally as their new king, demanded that Duke of Gordon, Governor of the Castle, surrender the fortress. Gordon, who had been appointed by James VII as a fellow Catholic, refused. In March 1689, the castle was blockaded by 7,000 troops against a garrison of 160 men, further weakened by religious disputes. On 18 March, Viscount Dundee, intent on raising a rebellion in the Highlands, climbed up the western side of the Castle Rock to urge Gordon to hold the castle against the new King. Gordon agreed, but during the ensuing siege he refused to fire upon the town, while 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, and a major strengthening of the fortifications was carried out throughout the 1720s and 1730s. This was the period when most of the artillery defences and bastions on the north and west sides of the castle were built. These were designed by military engineer Captain John Romer, and built by the architect William Adam. They include the Argyle Battery, Mills Mount Battery, the Low Defences and the Western Defences. The last