Middle Ages · state
Kingdom of Germany
When the Carolingian line died out in East Francia in 911, the dukes elected a king of their own, and fifty years later his successor was crowned emperor.
In 843 the Treaty of Verdun split Charlemagne's empire, and its eastern part, East Francia, became the seed of Germany; its king Louis the German was already called King of Germania. When the last East Frankish Carolingian, Louis the Child, died in 911, the great duchies of Saxony, Franconia, Bavaria and Swabia did not break away. Their dukes met and elected Conrad I of Franconia as king.
Conrad died in 918 and, according to the chronicler Widukind of Corvey, had his brother offer the crown to Henry the Fowler, Duke of Saxony. Henry forced Arnulf of Bavaria to submit, and in 925 Lotharingia joined the kingdom for good. Henry's son Otto was crowned at Charlemagne's old capital of Aachen on 7 August 936. He put down rebellious dukes, and on 10 August 955 he crushed the Magyars at the Battle of Lechfeld, ending their raids on western Europe.
In 962 Pope John XII crowned Otto emperor in Rome, following the example of Charlemagne. From then on the German kings claimed the imperial title, and the union of Germany with Italy and later Burgundy under an elected emperor became known as the Holy Roman Empire, with the German lands at its core.
Read more on Wikipedia
Sources: en.wikipedia.org/wiki/Kingdom of Germany, en.wikipedia.org/wiki/Otto the Great, en.wikipedia.org/wiki/Battle of Lechfeld

