Construction of the Melsztyn Castle was initiated in 1340, by the castellan of Kraków, Spicymir. In 1362, Bishop Bodzanta blessed the Holy Spirit chapel at the castle. The complex for 200 years remained in the hands of the powerful noble family of Leliwita Melsztyński, which in the late 14th century built a Gothic keep, located in the western wing of the castle. In the 15th century, Melsztyn was one of centers of Polish Hussite movement, and in 1511, Jan Melsztyński sold it to the castellan of Wiślica, Mikołaj Jordan of Myślenice. In ca. 1546, Spytek Jordan ordered remodeling of the Gothic complex, turning it into a Renaissance residence. After the marriages of his two daughters, Melsztyn became the property of the Tarło family, and in 1744, it came into the hands of the Lanckoroński family.
Melsztyn Castle was destroyed by the Russians in 1771, during the Bar Confederation, and has been a ruin since then. In 1789–1796, parts of the complex were pulled down, in order to gain building materials for a church at Domosławice. In the following years, the complex was neglected, which resulted in collapse of the keep (1846). In 1879-85, due to the efforts of Karol Lanckoroński, the castle gained the status of a permanent, protected ruin. Since 2008, it belongs to the gmina of Zakliczyn. The castle has been presented in paintings of Jan Matejko, Napoleon Orda, and Maciej Bogusz Steczyński.
References:Kakesbeck is one of the largest medieval fortifications in Münsterland and the oldest castle in Lüdinghausen. The imposingly grown complex originated in 1120 as a motte, a small hilltop tower castle. After numerous changes of ownership, the castle was extended onto two islands, but it was not until the 14th century that it underwent significant alterations and extensions under the von Oer family. The estate experienced its heyday in the middle of the 18th century, when it covered an area of almost one square kilometre and consisted of five further outer castles in addition to the core castle, which were secured by ramparts and moats.
The well-maintained condition of the castle today is thanks to the late Wilfried Grewing, the former lord of the castle. The foundation named after him has been particularly committed to preserving the property since 2020.