Meanwhile, Henry VII had been
crowned emperor by
Pope Clement V on 29 June 1312, but he died in the following year. As his son King
John of Bohemia, seemed too powerful to the prince-electors, Frederick again became a candidate for the crown, while King John withdrew and backed Louis IV of Bavaria. On 19 October 1314 at
Frankfurt-
Sachsenhausen, Frederick received four out of seven votes, however two of them being contested, by Archbishop
Henry II of
Cologne, by Louis' brother Elector Palatine
Rudolph I who did not want to support his younger brother, by the deposed Bohemian king
Henry of Carinthia, and Duke
Rudolph I of
Saxe-Wittenberg (whose right was contested by his Lauenburg cousin, head of the senior branch). The next day however (because the Luxemburg party did not accept this election), a second election was held upon the instigation of Archbishop
Peter von Aspelt, where Louis IV was elected with the five votes by the Mainz archbishop himself, by Archbishop
Baldwin of
Trier, Margrave
Waldemar of Brandenburg as well as by Duke
John II of Saxe-Lauenburg (he contested his Wittenberg cousin's claim to the electoral vote) and – again – the king of Bohemia, John. It is clear that at least three of the voters of Louis were uncontested electors. Louis made use of the conflict around the Bohemian throne and the rivalry over the
Saxon electoral dignity between the
Ascanian duchies of Saxe-Wittenberg and Saxe-Lauenburg. Henry of Carinthia voting for Frederick actually only claimed the electoral power, as he had already been deposed in 1310 by John voting for Louis. Duke John II of Saxe-Lauenburg in turn sought to prevail against his cousin Duke Rudolph I of Saxe-Wittenberg – which ultimately failed as the 1338
Declaration of Rhense and the
Golden Bull of 1356 conclusively named the dukes of Saxe-Wittenberg as electors. Louis then was quickly crowned at
Aachen Cathedral by Archbishop Peter von Aspelt, while Frederick was forced to proceed to
Bonn Minster for his coronation on 25 November 1314 by the Cologne archbishop
Heinrich von Virneburg. Both tried for the support by the
Imperial States; Frederick was enfeebled by the fact that he had been crowned at the wrong place and moreover struggled with the rebellious
Swiss Confederacy in the
Swabian home territories of the Habsburgs, suffering a crushing defeat at the 1315
Battle of Morgarten. He nevertheless was able to hold his ground against the Wittelsbach rival and after several years of bloody war, victory finally seemed to be within Frederick's grasp, as he was strongly supported by the forces of his younger brother
Leopold I. However, Frederick's army was in the end completely beaten near
Mühldorf on
Ampfing Heath on 28 September 1322, and Frederick and 1,300 nobles from Austria and the allied
Archbishopric of Salzburg were captured. ==Reconciliation==