Originally protected by the Byzantine navy, the Papal States found themselves in need of a naval force of their own following a Muslim raid on Rome in 843 and the sack of the city's basilicas "extra muros" in 846. Under the leadership of Caesar, prince of Naples, a force of Neapolitan, Amalfitan, Gaetan, and Papal ships repulsed the pirates off Ostia in 849.