Archaeological evidence indicates a cultic centre here in pre-Antiquity. The castle was first mentioned in 1202, but is of older origin. At the end of the 13th century, the castle burned; the northeast part was demolished and never rebuilt. The remainder of the castle was torn down in the 16th century after the 1511 Idrija earthquake, leaving only the three-storey Romanesque chapel built between the 11th and 15th centuries. One can still see the remnants of defensive walls and the recently restored defensive tower.