 In 1265 he fought against Guido da Montefeltro with Malatesta and, in the same year, he faced the Traversari with Guido da Polenta of Ravenna.His diplomatic skills led him to be chosen by Pope Martin IV as Captain of the People in Florence in March 1282.It was probably here that Dante Alighieri had the opportunity to meet him.