 In the late 1660s the castle was renovated, and thanks to this the locals could hide there during the Turkish campaigns in 1672 and in 1676.The castle was acquired in 1704 by the Potocki family.Count Potocki reconstructed the castle for his own residence in rococo style.