The town was first mentioned in 1021, in a written document currently preserved in St. Catherine's monastery in Egypt.
The oldest archeological remains date to the early Neolithic era Medvednjak,4500-3500 BC).