Milengrad was built during the reign of Hungarian–Croatian King Béla IV after the Mongol invasion of 1241–1242. Around 1303, King Charles Robert donated the fortress to the Cseszneky family in compensation for their loss of Ipolyvisk Castle. The counts Cseszneky sold it soon to Ban Mikcs, who, in 1309, ceded the lordship to the Herkffy family. In 1536, by the marriage between Katalin Herkffy and Miklós Patačić, Milengrad became the two families' shared property. In the 17th century, the Herkffy family became extinct, and the Patačićs followed in the 19th century. Due to the constant warfare with the Ottomans, and probably as well to an earthquake, by the late 17th century several walls of Milengrad fell down, and in 1683 it was already mentioned as arx diruta, a castle in ruins.
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.