Answer
Louis IV attempted to depose Pope John XXII, who had excommunicated him for supporting a rival claimant to the German throne. He installed an anti-pope, Nicholas V, in an attempt to weaken the power of the papacy and assert his own authority. This action further strained relations between the Holy Roman Empire and the Catholic Church, leading to a prolonged period of conflict and division within the European religious landscape.