In 1477, Duke Leopold III acquired the castle and occupied it with tenants and caretakers in order to stop the raids. In 1529, the castle was razed by a group of Turks at the first Turkish siege of Vienna. Again it was rebuilt and equipped with embrasures for artillery pieces.