The Castle of Eger is historically known for repelling the Turkish attack in 1552 during the Siege of Eger. During the Mongol invasion in 1241, this castle was ruined, and the bishop of Eger moved it to a rocky hill in the city of Eger. On the hill, a new castle was built, and it developed rapidly. In 1470 a Gothic palace was built. In 1552, a Turkish army of 35,000-40,000 soldiers attacked the castle which had 2,100-2,300 defenders. The siege failed as the Turks suffered heavy casualties. A total of 1,700 of the defenders survived. After that Turks besieged the castle again in 1596, resulting in a Turkish victory. In 1701, the Austrians exploded half of the castle (the Külső vár).
Archaeological excavations only started in 1925 and the castle was used by the army as barracks until 1957. Today there are several museums in the castle.
References:The Château de Foix dominates the town of Foix. An important tourist site, it is known as a centre of the Cathars. Built on an older 7th-century fortification, the castle is known from 987. In 1002, it was mentioned in the will of Roger I, Count of Carcassonne, who bequeathed the fortress to his youngest child, Bernard. In effect, the family ruling over the region were installed here which allowed them to control access to the upper Ariège valley and to keep surveillance from this strategic point over the lower land, protected behind impregnable walls.
In 1034, the castle became capital of the County of Foix and played a decisive role in medieval military history. During the two following centuries, the castle was home to Counts with shining personalities who became the soul of the Occitan resistance during the crusade against the Albigensians.