Answer
In 840, Pepin I of Aquitaine and Louis the German joined forces against Lothair I, the eldest son of Charlemagne. This alliance was part of a larger conflict over the division of the Carolingian Empire, which had been divided between Lothair, Pepin, and Louis after Charlemagne's death in 814.