The importance of the castle in Bodzentyn began to decline following the construction of the episcopal palace in Kielce. In 1789, the Diet decided to proceed to nationalize episcopal property. The castle was converted into a granary and a military hospital.