 The allied forces of John III of Naples and Landulf II of Benevento invaded, but an alliance with the Amalfitans saved Gisulf's reign.Gisulf like his father remained with the Greeks, even warring with the pope.He concluded a treaty with the latter and came to the defence of Pandulf Ironhead, the prince of Benevento and Capua.