 During the Byzantine–Bulgarian wars of the late 10th and early 11th centuries, the city seems to have been autonomous or at times under Bulgarian suzerainty.From the mid-11th century on, its governor held the title of "doux" or "katepano".In 1040–1041, the troops of the theme, under their leader Tihomir, rebelled and joined the revolt of Peter Delyan.