Matthew III Csák
The castle was built by the archbishop of Esztergom in the late 13th century. Matthew III Csák took it by digging a tunnel under the castle walls. After the death of Matthew Csák in 1321, it was again the property of the archbishop. It was recruited in the 15th century. After the unsuccessful conspiracy of the archbishop János Vitéz against King Matthias Corvinus in 1472 it was taken by the king.