to get the Pope's support. The Pope agreed to several items that the Queen wanted – especially, he issued a dispensation to alter the terms of the Danish succession that would permit women to inherit the Danish throne. However, the main issues remained unsolved by Urban's death, with the case continuing at the papal court in Rome and the exiled Archbishop Erlandsen coming to Italy to pursue it in person. In fact, the convoluted affairs of distant Denmark were of only a minor concern to the Pope. It was Italy which commanded Urban's near full attention: the long confrontation with the late Hohenstaufen German Emperor Frederick II had not been pressed during the mild pontificate of Alexander IV, during which it devolved into inter-urban struggles between nominally pro-Imperial Ghibellines and even more nominally pro-papal Guelf factions. Frederick II's heir Manfred was immersed in these struggles. Urban's military captain was the condottiere Azzo d'Este, nominally at the head of a loose league of cities that included Mantua and Ferrara. Any Hohenstaufen in Sicily was bound to have claims over the cities of Lombardy, and as a check to Manfred, Urban introduced Charles of Anjou into the equation to place the crown of the Kingdom of Sicily in the hands of a monarch amenable to papal control. Charles was Count of Provence by right of his wife, maintaining a rich base for projecting what would be an expensive Italian war. For two years, Urban negotiated with Manfred regarding whether Manfred would aid the Latins in regaining Constantinople in return for papal confirmation of the Hohenstaufen rights in the realm. Meanwhile, the papal pact solidified with Charles a promise of papal ships and men, produced by a crusading tithe, and Charles's promise not to lay claims on Imperial lands in northern Italy, nor in the Papal States. Charles promised to restore the annual census or feudal tribute due the Pope as overlord, some 10,000 ounces of gold being agreed upon, while the Pope would work to block Conradin from election as King of the Germans. Before the arrival in Italy of his candidate Charles, Urban IV died at Perugia on 2 October 1264. His successor was Pope Clement IV, who immediately took up the papal side of the arrangement. There is a story that the pope's death was related to Great Comet of 1264 which he fell sick at sometime near the arrival