The settlement suffered a terrible blow by the unsuccessful Siege of Vienna by the Turks in 1529. After their retreat, Lőrinc Héderváry, who supported the wrong side, was captured, and could only regain his estates with the support of his lord, Ferdinánd I.. After he was freed in 1535. He immediately set about reconstructing the Héderváry family's centre, and the castle was completed in 1578.