Acording to custom, Charlemagne's kingdom was decided his sons. Charlemagne's had one surving son, Louis the Pious. When he died the Empire was divided among his sons: Charles, Louis, and finally, when Lothair died, the kingdom was divided between his two brother