Ravenna was the capital of the Western Roman Empire in the 400s, of the Ostrogoth Kingdom in the early 500s, and seat of the Exarchate of Ravenna until 751.
In late Antiquity the north-east of the Italian peninsula suffered many invasions. The wars caused people to move to the safer lagoon areas, and hence to the foundation of Venice.