Answer
King Louis IV of Bavaria was a major opponent of Pope John XXII. The two men disagreed on a number of issues, including the authority of the papacy and the legitimacy of Louis's claim to the throne of Germany. The dispute between the two men led to a series of wars, which culminated in Louis's defeat and capture at the Battle of Mühldorf in 1322.