Lochmaben Castle was originally a motte-and-bailey castle built south of the current castle in c. 1160 by the Bruce family, Lords of Annandale. King Edward replaced it with a much sturdier structure at the south end of Castle Loch around 1300 and its remains still show the massive strength of its defences. Archibald Douglas, Lord of Galloway, with the assistance of the Earls of March and Douglas, after a siege of nine days, took Lochmaben Castle from the English and 'razed it to the ground' in 1384.
Lochmaben Castle remained important and had a turbulent history until some time after the early 17th century by which time it had seen its last siege and was gradually abandoned. The castle is now protected as a scheduled monument.
References:The Gravensteen is a castle in Ghent originating from the Middle Ages. The name means 'castle of the counts' in Dutch. Arnulf I (918–965), Count of Flanders, was the first to fortify this place, building a medieval bastion on this high sand dune, naturally protected by the river Leie and its marshy banks. This bastion consisted of a central wooden building and several surrounding buildings, also in wood.
In the early 11th century, the wooden building was replaced by a stone residence, consisting of three large halls that made up three storeys, connected by a stone stairwell. The monumental stone staircase, the light openings, the fireplaces built into the walls and the latrines were signs of considerable luxury and comfort in those days. There was probably also a tower.