 In 1604 castle Bernstein was unsuccessfully besieged for weeks by a combined army consisting of Hungarians, Turks, and Tatars under the leadership of Stephen Bocskay.Due to an explosion of the gunpowder storeroom, in 1617 Ludwig Königsberg ordered the rebuilding of the Gothic inner part of the castle in Baroque style.The keep and towers were eliminated.