The city was destroyed in the 447 invasion of the Huns and laid in ruins for a century It was rebuilt by Byzantine Emperor Justinian I. During the reign of Justinian it flourished, being surrounded with great fortress walls whose remnants can still be seen today.