 In the next year (1027), after Sergius' ally Boiannes was recalled, Pandulf attacked Naples and quickly captured it, some say by treachery.Pandulf V fled to Rome and Sergius went into hiding.For Sergius, however, fortune reversed itself when Pandulf IV was abandoned by his Norman ally, Rainulf Drengot in 1029.