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 Walls of Constantinople are a series of defensive stone walls that have surrounded and protected the city of Constantinople (today Istanbul) since its founding as the new capital of the Roman Empire by Constantine the Great. With numerous additions and modifications during their history, they were the last great fortification system of antiquity, and one of the most complex and elaborate systems ever built. They were also the largest and strongest fortification in both the ancient and medieval world.
Initially built by Constantine the Great, the walls surrounded the new city on all sides, protecting it against attack from both sea and land. As the city grew, the famous double line of the Theodosian Walls was built in the 5th century. Although the other sections of the walls were less elaborate, they were, when well-manned, almost impregnable for any medieval besieger.