At the end of the 14th century, Teutonic Knights built a castle in Ryn, serving as a base for fighting with the Lithuanians. Until 1525, the castle was the seat of the commander. After two years of the construction of the castle, then the Grand Master of the Order Winrich von Kniprode arrived in Ryn to inspect and take over the castle, and returned to the Malbork by waterway. In 1723 Ryn received city rights granted by the Prussian King Frederick William I and in 1853 the castle was converted into a prison. Since July 2006, the castle operates as a hotel.
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.