Guaifer's sister, Adelchisa, had married Sicard of Benevento and when Sicard was assassinated and Radelchis usurped the throne, Guaifer helped release Siconulf, the dead prince's brother, and supported him in his war with Radelchis for the throne, even proclaiming him prince in Salerno.
Siconulf's son and successor fell under the control of Peter, who, in December 853, received Louis's recognition as prince.
He was succeeded by his son Adhemar, but the latter's rule was unpopular and by 859, Capua, a Salernitan vassal desiring independence, was wearing away at princely authority with its attacks.
At the beginning of his reign, a restive Capua, which had gone through several internal upheavals, under the gastald or count Landulf II made a move for independence, but Guaifer kept them securely in the Salernitan fold.
In 865, Guaifer founded the monastery of San Massimo, where he and his descendants are buried, and in 868, he richly endowed it with grants in land and money.