Between 1296 and 1341, the castle was twice captured by English invaders and twice retaken by the Scots. David's Tower, some 100 feet (30 metres) in height, was built to honour King David II, who died in the castle in 1371, but was substantially destroyed in a siege 200 years later.