The crisis began when a group within the church, members of the Gregorian Reform, decided to address the sin of simony by restoring the power of investiture to the Church. The Gregorian reformers knew this would not be possible so long as the emperor maintained the ability to appoint the pope, so the first step was to liberate the papacy from control by the emperor. An opportunity came in 1056 when Henry IV became German king at six years of age. The reformers seized the opportunity to free the papacy while he was still a child and could not react. In 1059 a church council in Rome declared secular leaders would play no part in the election of popes and created the College of Cardinals, made up entirely of church officials. To this day the College of Cardinals selects the pope.
Once Rome gained control of the election of the pope, it was now ready to attack the practice of secular investiture on a broad front.
I, Henry, king by the grace of God, with all of my Bishops, say to you, come down, come down, and be damned throughout the ages.
The situation was made even more dire when Henry IV installed his chaplain as Bishop of Milan, when a candidate had already been chosen in Rome. In 1076 Gregory responded by excommunicating the king, removing him from the Church and deposing him as German king. This was the first time a king of his stature had been deposed since the 4th century. In effect, the pope and the king each claimed to have removed the other from office.
Enforcing these declarations was a different matter, but fate was on the side of Gregory VII. The German aristocracy was happy to hear of the king's deposition. They used the cover of religion as an excuse for a continuation of the rebellion started at the First Battle of Langensalza in 1075 and the seizure of royal powers. The aristocracy claimed local lordships over peasants and property, built forts, which had previously been outlawed, and built up localized fiefdoms to break away from the empire.
Thus, due to these combining factors, Henry IV had no choice but to back down, needing time to marshal his forces to fight the rebellion. In 1077 he traveled to Canossa in northern Italy to meet the pope and apologize in person. As penance for his sins, and echoing his own punishment of the Saxons after the First Battle of Langensalza, he dramatically wore a hairshirt and stood in the snow barefoot in the middle of winter in what has become known as the Walk to Canossa. Gregory lifted the excommunication, but the German aristocrats, whose rebellion became known as the Great Saxon Revolt, were not so willing to give up their opportunity. They elected a rival king named Rudolf von Rheinfeld.
In 1081 Henry IV captured and killed Rudolf, and in the same year he invaded Rome with the intent of forcibly removing Gregory VII and installing a more friendly pope. Gregory VII called on his allies the Normans, who were in southern Italy, and they rescued him from the Germans in 1085. The Normans managed to sack Rome in the process, and when the citizens of Rome rose up against Gregory he was forced to flee south with the Normans, and he died there soon after.
The Investiture Controversy continued for several decades as each succeeding pope tried to fight the investiture by stirring up revolt in Germany. Henry IV was succeeded upon death in 1106 by his son Henry V, who was also unwilling to give up investiture.
William the Conqueror had accepted a papal banner and the distant blessing of Gregory VII upon his invasion, but had successfully rebuffed Gregory's assertion after the successful outcome, that he should come to Rome and pay homage for his fief, under the general provisions of the "Donation of Constantine".
The ban on lay investiture in Dictatus Papae did not shake the loyalty of William's bishops and abbots. In the reign of Henry I the heat of exchanges between Westminster and Rome induced Anselm, Archbishop of Canterbury, to give up mediating and retire to an abbey. A Norman count who was Henry's chief advisor was excommunicated, but the threat of excommunicating the king remained unplayed. The papacy needed the support of English Henry while German Henry was still unbroken. A projected crusade also required English support.
Henry I commissioned the Archbishop of York to collect and present all the relevant traditions of anointed kingship. "The resulting Anonymous of York treaties are a delight to students of early-medieval political theory, but they in no way typify the outlook of the Anglo-Norman monarchy, which had substituted the secure foundation of administrative and legal bureaucracy for outmoded religious ideology
Henry recognized the dangers of depending on monastic scholars to staff his chancery and turned increasingly to secular scholars (who naturally held minor orders) and rewarded these men of his own making with bishoprics and abbeys. Henry expanded the system of scutage to reduce the monarchy's dependence on knights supplied from church lands. The conclusion of the brief English investiture controversy was to strengthen the secular power of the king.
Before the monarchy was embroiled in the dispute with the Church, it declined in power and broke apart. Localized rights of lordship over peasants grew, increasing serfdom and resulting in fewer rights for the population. Local taxes and levies increased while royal coffers declined. Rights of justice became localized and courts did not have to answer to royal authority. In the long term the decline of imperial power would divide Germany until the 19th century.
As for the papacy, it gained strength. During the controversy, both sides had tried to marshal public opinion; as a result, lay people became engaged in religious affairs and lay piety increased, setting the stage for the Crusades and the great religious vitality of the 12th century.
The dispute did not end with the Concordat of Worms. There would be future disputes between popes and Holy Roman Emperors, until northern Italy was lost to the Empire entirely. The Church would turn the weapon of Crusade against the Holy Roman Empire under Frederick II. According to Norman Cantor, "The investiture controversy had shattered the early-medieval equilibrium and ended the interpenetration of ecclesia and mundus. Medieval kingship, which had been largely the creation of ecclesiastical ideals and personnel, was forced to develop new institutions and sanctions. The result during the late eleventh and early twelfth centuries, was the first instance of a secular bureaucratic state whose essential components appeared in the Anglo-Norman monarchy.