Verified Answer :

In the 11th century Pope Gregory VII excommunicated the Holy Roman Emperor, Henry IV. Their disagreement was about who had the right to appoint church officials. hopes this answer helps :) :D :)