clock mechanism. The still functioning Castle Rushen clock is a notable landmark in Castletown, having been presented by Queen Elizabeth I of England in 1597, while she controlled the island during a dispute. The outer parts of the castle are protected by a moat and a glacis, with the glacis originally extending as far as the moat around the entire land front of Castle Rushen. History Changing hands between the Scots and English After its initial construction and use by the Norse-Gaelic rulers of the Isle of Man, the castle changed hands repeatedly between the Scots and the English. The Isle of Man was transferred to Scotland the year after Magnús Óláfsson's death as part of the Treaty of Perth, ending the 1263–1266 Scottish–Norwegian War. On 18 May 1313, with the help of his friend, Angus Og Macdonald, Lord of the isles and his fleet, the Scottish king Robert the Bruce invaded the Isle of Man at Ramsey. The island was captured in five days, the only resistance occurring at Castle Rushen, which was defended by Dungal MacDouall, who had once been Lord of Galloway and betrayed Robert Bruce's brothers, Alexander and Thomas, to Edward I who promptly had them executed as traitors. After a three-week siege, Robert captured the castle on 12 June 1313, gaining the Isle of Man as an outpost securing the approaches to western Scotland and the Hebrides. After several more changes of hands the English and their supporters eventually prevailed. The English king Edward I Longshanks claimed that the island had belonged to the Kings of England for generations and he was merely reasserting their rightful claim to the Isle of Man. From 1405 to 1738 the Isle of Man was controlled by the Stanley family, beginning with Sir John Stanley, who was given the title of King of Mann by Henry IV of England in 1405. The title King of Mann was replaced in 1521 by the title Lord of Mann, held today by the reigning British monarch. Castle Rushen in the English Civil War During the English Civil War of 1642–1651 James Stanley, 7th Earl of Derby, the Lord of Mann from 1627 to 1651, sided with the Royalist cause. Known as The Great Stanley (), James established a secondary Royalist court at Castle Rushen before leaving to fight the Parliamentarians in England. In August 1651 James sailed with two frigates, bringing 300