With the collapse of Roman rule in the 5th century, first barbarian tribes and then the Byzantine Empire occupied this region. In the seventh century, South Slavs migrated to the Balkan region. They brought Slavic culture and customs which gradually merged with the Illyrian culture. The community was granted the status of parish (župa) in the County of Hlivno after Tomislav established the Kingdom of Croatia in 925. Therefore, the town, by the end of the 10th century, had developed all the infrastructure necessary for acquiring the status of the parish. In 1078 it was mentioned as a boundary parish of Archdiocese of Split.