The castle was a military-civic centre around a manor until the Hussite Wars. During the Hussite wars, Emperor Sigismund positioned mercenary forces of his son-in-law, Albrecht of Austria, around the castle, but he later pledged it to local nobleman Petr Kutěj in 1424. The Hussites besieged the castle in vain during the years 1428–32. During the second half of the 15th century, the castle was rented by Przemyslaus II of Těšín, who decided to reinforce the castle with the construction of surrounding walls. In 1468, King of Hungary and antiking of Bohemia Matthias Corvinus started his occupation of the castle.