The Lombard League once again receiving papal support by Gregory IX, who excommunicated Frederick II in 1239, and effectively countered the emperor's efforts. During the 1248 Siege of Parma, the Imperial camp was assaulted and taken, and in the ensuing battle the Imperial side was routed. Frederick II lost the Imperial treasure and with it any hope of maintaining the impetus of his struggle against the rebellious communes and against the pope. The League was dissolved in 1250 when Frederick II died. Under his later successors the Empire exerted much less influence on Italian politics.