Treaty of Verdun
Emperor Louis died in 840. After severe innerdynastic struggles, the Carolingian Empire eventually was divided according to the Treaty of Verdun in 843. The Kingdom of Bavaria was merged with Louis the German's Kingdom of East Francia (the predecessor of the Kingdom of Germany), and his wife Hemma became the first East Frankish queen.