During the 9th century, a fortress was built, and soon after, a town was built around the fortress. The town was located on a big piece of land between the Klokotnitsa, Harmanliyska, and Maritsa rivers.