The castle was converted into a Gothic anti-Hussite fortress under Sigismund of Luxemburg in 1430, became a Renaissance castle in 1562, and was rebuilt in 1649 in the baroque style. Under Queen Maria Theresa, the castle became a prestigious royal seat. In 1811, the castle was inadvertently destroyed by fire and lay in ruins until the 1950s, when it was rebuilt mostly in its former Theresian style. In the 1940s, it was planned to demolish the castle ruins and replace them with a new university complex. However, it was never realised, and in the 1960s, reconstruction began. Nowadays, it serves ceremonial purposes and as a historical museum of the Slovak National Museum.