The Slavic and Avar invasion in 584 meant Anchialos was conquered and its fortifications were destroyed. Avar Khagan Bayan turned the city into his residence for a few months and concluded a peace treaty with the Byzantines. At the eve of his campaigns, the emperor Maurice visited the city to oversee reconstruction.