Lietava Castle was built after 1241, most likely as an administrative and military centre. In the early 14th century, it is mentioned with Máté Csák III, one of the powerful magnates in the Kingdom of Hungary. The castle changed hands until the 16th century when the Thurzó family gained it. It was reconstructed and fortified, and given its own military garrison. After the death of Imre Thurzó in 1621, it was divided between his heirs. After the ownership disputes in 1641, they lost interest in it. The castle report in 1698 said that the castle was uninhabited and there was only an archive, which was moved to the Orava Castle in the 1760s. After that, the castle was abandoned and not used any more.
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.