 In the 1830s the castle was bought by Count Edward Raczyński and partially rebuilt, with a Protestant church temporarily housed inside, but after Raczyński's death in 1845 plans to open an academy or a hospital there were abandoned, and the castle once again fell into disrepair.The castle was not rebuilt again until the times of People's Republic of Poland, when in 1952–1956, a museum was opened there.The castle became the site of a museum, Zagłębie Museum in 1956.