caracciolo spent his period as master mostly at the papal court, also after urban died, being replaced by boniface ix. in 1391 he was chosen as mediator between the warring republic of venice and gian galeazzo visconti, duke of milan; he later performed the same tasks with other italian rival communes and lords.