 The castle was built in the second half of the 13th century by the ancestors of the Balassa noble family.They had to recapture the castle from sons of Casimir of the Hunt-Poznan clan by a siege in 1290.The castle was captured by Ottoman troops in 1576, because its guard fled when they heard the approaching Ottomans.