After Pepin's death, the kingdom was divided between the two heirs of the Carolingian dynasty: Charlamagne and Carloman. However, Charlemagne and Carolaman didn't like each other. The partitioning of a kingdom often touched off wars between disgruntled heirs, and in 768 and the years immediately afterward, history looked as though it was going to repeat itself.