A new pope - Innocent IV - was elected. At first, Frederick was content with the election since Innocent had relatives in the Imperial camp. However, the new Pope immediately turned against Frederick. When the City of Viterbo rebelled, the Pope backed the Guelphs. Frederick immediately marched to Italy and besieged Viterbo. The pope signed a peace treaty with the emperor, relieving the city. However, after the Emperor left the Cardinal Raniero Capocci, as the leader of Viterbo, had the garrison massacred. The Pope made another treaty but he immediately broke it and continued to back the Guelphs, supporting Henry Raspe, Landgrave of Thuringia as King of the Romans and soon plotted to have Frederick killed. When the attempt failed the pope fled to Liguria. Soon the tide turned against the imperial party as the Lombard city of Parma rebelled and Enzo - who had not been present - asked his father for help. Frederick and Ezzelino III da Romano, the Tyrant of Verona, besieged the city. However the imperial camp was ambushed by the Guelphs and in the ensuing Battle of Parma the imperial party was routed, losing much of their treasury. Frederick retreated and gathered another army but the resistance of Parma encouraged other cities to rebel and Frederick was powerless to do anything. Things became worse for the imperial party as the Ghibellines were defeated in the Battle of Fossalta by the Bolognese, at which Enzo was captured and imprisoned until his death. Although the Ghibellines did start recovering, defeating the Guelphs in the Battle of Cingoli, Frederick by then was ill. Before he died much of his territory was recovered by his son Conrad IV, thus leaving Italy at peace for a very few years.