The castle was rebuilt in the 15th century, and then twice in the 16th century, in relation to the fires which took place here in 1528 and 1541. In 1630, the castle burned down as a result of riots related to the rebellion of mercenary troops, which demanded the payment of overdue wages. Then the castle was destroyed by the Swedish and Transylvanian troops of George II Rákóczi during the Swedish Deluge.