Hajnáčka castle was built in the Gothic style against the Mongol invasion in the mid-1200s. Later, in the mid-15th century, the construction was finished. Hajnáčka was the seat of important feudal lords. In 1545 the castle was besieged and conquered by Ottomans. At the end of the 16th century and the first third of the 17th century castle was an important part of the anti-Turkish defensive line. Nevertheless, it Turks in 1645 again briefly occupied for few years. In the 17th century the castle was only partially inhabitated. In 1703 it was burnt down and no longer restored.
Today the remains of walls stand on the top of the hill which is hard to reach.
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.