In the 11th century, a bishop Michael is known through his seal; from the decoration it appears that he may have previously been a member of the clergy of the Hagia Sophia in Constantinople. The town is mentioned in the later 11th century as the site of military operations against invading nomadic tribes: the general Nikephoros Bryennios campaigned against the Pechenegs in 1051; in 1087 the town itself was sacked by a host of Pechenegs, Cumans, and Magyars; and in 1090 the Pechenegs defeated a Byzantine force in its vicinity.