Viminacium was destroyed in 441 by Attila the Hun, but rebuilt by Justinian I. During Maurice's Balkan campaigns, Viminacium saw destruction by the Avars in 582 and a crushing defeat of Avar forces on the northern Danube bank in 599, destroying Avar reputation for invincibility.