Answer
Pope Gregory VII excommunicated Henry IV, the Holy Roman Emperor, in 1076. This act was a culmination of the Investiture Controversy, a dispute over the right to appoint bishops and abbots. Gregory believed that the Church should have exclusive control over these appointments, while Henry asserted the traditional right of secular rulers to invest clergy with their offices.