Answer
The primary charge for Louis IV's excommunication was usurpation, as he had seized the German throne without the approval of the Holy Roman Emperor or the Pope. This act of defiance against both secular and religious authority led to a prolonged conflict between Louis and the papacy, known as the Investiture Controversy, which had profound political, religious and territorial impacts in medieval Europe.