In the 9th century a larged walled settlement of the Great Moravian Empire, later on a fortified stronghold with basilica and a palace stood there. In the 15th century, the Castle was reconstructed into a magnificient Gothic well fortified residence. In 16th century, an extensive Renessaince reconstruction of the castle palace into a royal residence took place. Since 1608 the king?s crown was deposited on the castle. In the 17th century, the Castle was extended and it reached its today?s appearance. In the second half of the 18the century, the sovereign Maria Theresa initiated a grandiose reconstruction. The Castle was changed into a luxurious royal residence. Joseph II converted the Castle into a general seminary and former royal residence was changed into a military barracs. By the carelessness of the soldiers the Castle in 1811 burnt down. From that time until its reconstuction in the period 1954-1968 it was in bad repair. The building now houses a museum.