 He soon became the counsellor and confessor for the pope who on 26 March 1408 appointed him as the Archbishop of Ragusa.In mid-1408 the pope named him as a cardinal and sent him as ambassador to the Hungarian kingdom to secure the adhesion of Sigismund to the pope.On 26 March 1408 he was sent with Giacopo del Torso to negotiate with Antipope Benedict XIII in an attempt to secure the latter's abdication though this was unsuccessful.