Want this question answered?
Pope Gregory died leaving Henry iv to do as he pleased
Pope Gregory VII
What were Pope Gregory VII and Emperor Henry IV in disagreement about
Henry lV violated the pope's orders.
Pope Gregory VII
Henry IV became Holy Roman Emperor in 1070 A.D., and Hildebrand became Pope Gregory VII in 1073 A.D., he forbade lay investiture in 1075 A.D.. A synod at Worms attempted to depose the Pope in 1076 A.D. and the Pope excommunicated Henry and the Bishops later that same year. In 1077 A.D., Henry said he was sorry and submitted to ecclesiastical penance.
The Pope was angry about something that caused him to excommunicate Henry IV. Henry begged for forgiveness and was allowed back into the church. The next year he was excommunicated once again. It is not clear what brought on the anger of the Pope.
. Emperor Henry IV
The conflict you are asking about is called the Investiture Controversy. There is a link below to an article on it.
It's because Henry's nobles supported Gregory, and the reason why Henry begged the Pope was because he said the Pope had no real authority.
Henry IV of Germany told him to resign. In exchange, Gregory excommunicated Henry and remained as pope.
emporer Henry IV