sentences:  The gates were narrowed under Justinian (527–565) to provide better security.However the city was destroyed by the Avars in 586.Later a Bulgarian mediaeval settlement was built, which existed until the 10th century.