Captured in 1296 by England's King Edward I, the Scots reclaimed it with a night attack in 1314. The English successfully attacked again in 1335 before, in 1341, Scots disguised as merchants took it back. Cromwell's forces occupied the castle in 1650.