 The castle fell into disrepair in the late 16th century.The fire of 1616 and damage during The Deluge in 1657 resulted in the further destruction.The fortress was periodically repaired, but due to shifts in the layout of the borders and relations between Poland and its neighbours, it lost much of its importance.