in 1244 a peace treaty was signed between innocent and frederick. however, the latter soon began military and diplomatic moves to overthrow the pope, who decided to take refuge in lyon, leaving capocci as his plenipotentiary in italy. when the news arrived that a compromise with the emperor was likely, he had a series of pamphlets, full of insults and accusations of heresy against frederick, published in the french city: their success among the prelates in the first council of lyon led to the deposition of the sicilian leader (1245). frederick replied by re-conquering viterbo, although capocci was able to gain back most of umbria and the march of ancona, including iesi, the emperor's birthplace. in 1246 innocent appointed him as papal legate also in the kingdom of sicily.