The Guelphs and Ghibellines (ˈgwɛlfs...ˈgɪbᵻlaɪnz , USalso-liːnz,_-lɪnz ; guelfi e ghibellini ˈɡwɛlfi e ɡɡibelˈliːni, -fj e -) were factions supporting respectively the Pope and the Holy Roman Emperor in the Italian city-states of Central Italy and Northern Italy during medieval time.
During the 12th and 13th centuries, rivalry between these two parties dominated the political life across medieval Italy. The struggle for power between the Papacy and the Holy Roman Empire arose with the Investiture Controversy, which began in 1075, and ended with the Concordat of Worms in 1122.
The conflict between Guelphs and Ghibellines arose from the political divisions caused by the Investiture Controversy, about whether secular rulers or the pope had the authority to appoint bishops and abbots. Upon the death of Emperor Henry V, of the Salian dynasty, the dukes elected an opponent of his dynasty, Lothair III, as the new emperor. This displeased the house of Hohenstaufen, who were allied with and related to the old dynasty.
Out of fear of the Hohenstaufen, Lothair III placed himself under the pope's protection. To this end, he ceded all Imperial rights to the pope under Henry V's Concordat of Worms. War then broke out in Germany between those who supported the Hohenstaufen, and those who were aligned to Lothair and the pope. Upon Lothair's death, the Hohenstaufen Conrad III was elected, while Lothair's heir, Henry the Proud, of the House of Welf, continued fighting.
Guelph (often spelled Guelf; in Italian Guelfo, plural Guelfi) is an Italian form of the name of the House of Welf, the family of the dukes of Bavaria (including the namesake Duke Welf II of Bavaria, as well as Henry the Lion). The Welfs were said to have used the name as a rallying cry during the Siege of Weinsberg in 1140, in which the rival Hohenstaufens (led by Conrad III) used "Wibellingen" (the name of a castle today known as Waiblingen, as their cry; "Wibellingen" subsequently became Ghibellino in Italian).