Louis IV, Holy Roman Emperor
Louis IV (German: Ludwig; 1 April 1282 – 11 October 1347), called the Bavarian, of the house of Wittelsbach, was King of the Romans from 1314, King of Italy from 1327, and Holy Roman Emperor from 1328.
Louis IV was Duke of Upper Bavaria from 1294/1301 together with his elder brother Rudolf I, served as Margrave of Brandenburg until 1323, as Count Palatine of the Rhine until 1329, and he became Duke of Lower Bavaria in 1340. He obtained the titles Count of Hainaut, Holland, Zeeland, and Friesland in 1345 when his wife Margaret inherited them.
Early reign as Duke of Upper Bavaria
Louis was born in Munich, the son of Louis II, Duke of Upper Bavaria and Count Palatine of the Rhine, and Matilda, a daughter of King Rudolph I.
Though Louis was partly educated in Vienna and became co-regent of his brother Rudolf I in Upper Bavaria in 1301 with the support of his Habsburg mother and her brother, King Albert I, he quarrelled with the Habsburgs from 1307 over possessions in Lower Bavaria. A civil war against his brother Rudolf due to new disputes on the partition of their lands was ended in 1313, when peace was made at Munich.