 Since the early thirteenth century, two great factions, the Guelfs and the Ghibellines, had competed for control of Florence. The Guelfs, with whom Dante was allied, were identified with Florentine political autonomy, and with the interests of the Papacy in its long struggle against the centralizing ambitions of the Hohenstaufen emperors, who were supported by the Ghibellines. After Charles of Anjou, with the blessing of the Papacy and strong Guelf support, defeated Hohenstaufen armies at Benevento (1265/6) and Tagliacozzo (1268), the Guelfs became the dominant force in Florence. By the end of the century, the Guelfs were themselves riven by faction, grounded largely in family and economic interests, but also exhibiting differing degrees of loyalty to the papacy.