 His personal character, however, soon involved him in a war with Guaimar IV of Salerno, who had him deposed by the Holy Roman Emperor, and took his principalities.Despite the importance of Capua in the region, the city declined under Pandulf's successors until it was eventually taken by the Norman allies of Guaimar.In 1058, a year after the death of Pandulf's weak successor, the Norman count Richard of Aversa conquered Capua, but left the city itself in the control of Landulf VIII for another four years.