<prompt> Translate the following text to EnglishLakini kwa kuwa wavamizi waliendelea kuelekea kaskazini kuelekea Roma, Naples ilifanikiwa kuungana na Jamhuri ya Amalfi iliyokuwa na nguvu sana wakati huo.  <response>: But as the invaders advanced north towards Rome, Naples successfully linked up with the then powerful maritime republic of neighboring Amalfi. 