Louis the German (c. 806/810 – 28 August 876), also known as Louis II of Germany and Louis II of East Francia, was the first king of East Francia, and ruled from 843 to 876 AD. Grandson of emperor Charlemagne and the third son of Louis the Pious, emperor of Francia, and his first wife, Ermengarde of Hesbaye, he received the appellation Germanicus shortly after his death, when East Francia became known as the kingdom of Germany. After protracted clashes with his father and his brothers, Louis received the East Frankish kingdom in the Treaty of Verdun (843). His attempts to conquer his half-brother Charles the Bald's West Frankish kingdom in 858–59 were unsuccessful. The 860s were marked by a severe crisis, with the East Frankish rebellions of the sons, as well as struggles to maintain supremacy over his realm. In the Treaty of Meerssen he acquired Lotharingia for the East Frankish kingdom in 870. On the other hand, he tried and failed to claim both the title of Emperor and Italy. In the East, Louis was able to reach a longer-term peace agreement in 874 after decades of conflict with the Moravians. His rule shows a marked decline in creation of written administration and government documents, a trend that would continue into Ottonian times. Early life His early years were partly spent at the court of his grandfather, Charlemagne, whose special affection he is said to have won. When the emperor Louis the Pious divided his dominions between his sons in 817, Louis was made the ruler of the Duchy of Bavaria, following the practice of emperor Charlemagne of bestowing a local kingdom to a close family member who then would serve as his lieutenant and local governor. Louis ruled from Regensburg, the old capital of the Bavarii. In 825 he became involved in wars with the Wends and Sorbs on his eastern frontier. In 827, he married Hemma, sister of his stepmother Judith of Bavaria, both daughters of Welf, whose possessions ranged from Alsace to Bavaria. It was not until 826 that Louis first came to rule Bavaria. In 828 and 829 he undertook two campaigns against the Bulgarians who wanted to penetrate into Pannonia without great success. During his time as Unterkönig, he tried to extend his rule to the Rhine-Main area. Rebellious son His involvement in the first civil war against his father's reign was limited,