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:Celje Castle was once the largest fortification on Slovenian territory. The first fortified building on the site (a Romanesque palace) was built in the first half of the 13th century by the Counts of Heunburg from Carinthia on the stony outcrop on the western side of the ridge where the castle stands. It had five sides, or four plus the southern side, which was a natural defence. The first written records of the castle date back to between 1125 and 1137; it was probably built by Count Gunter. In the western section of the castle, there was a building with several floors. Remains of the walls of this palatium have survived. In the eastern section, there was an enclosed courtyard with large water reservoirs. The eastern wall, which protects the castle from its most exposed side, was around three metres thicker than the rest of the curtain wall. The wall was topped with a parapet and protected walkway.