The ruins of Czorsztyn Castle stands at the top of the hill nearby Dunajec. According to Jan Długosz, in 1246 the owner of the castle was Piotr Wydżga. However that theory was never after confirmed by other historians, so the beginnings of castle functioning are dated on 14th century. Large development of the castle took place during the reign of Casimir III the Great. In years 1629–1643, when Jan Baranowski was a starosta of Czorsztyn, the castle was fundamentally rebuilt. In 1790 the roof of the castle burnt after a thunder clap. In the result castle was quickly broken down and became empty.
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.