 After the partition of Poland the castle fell into disuse and was auctioned off.During the 19th century the chapel and some other structures were dismantled or rebuilt to accommodate a local school.The castle sustained further damage during the First World War.