But as the invaders advanced north towards Rome , Naples successfully linked up with the then powerful maritime republic of neighboring Amalfi .
The invaders were peacefully overriding the city of Rome .