 Archaeological investigations have uncovered the remains of a castle that was there in the 9th century, but a stone castle was probably built by the Hrabišics, the owners of Most, while Wenceslaus I () granted Most royal city status in the 12th century, with the castle becoming the seat of the district administrator.In the 13th century, the castle was brought by Wenceslaus II () to the Branibors, in the time of disputes of Wenceslaus IV.