 Under Gisulf, Salerno declined.He made useless war on Amalfi and on his Norman neighbours, finally on Robert Guiscard, the duke of Apulia, himself.Though Salerno remained wealthy and opulent to the end of his reign, he misused this wealth during the siege of 1077 and lost his city and his principality to the Guiscard.