Pepin was elected king upon his father's death by the nobles of Aquitaine who were keen to establish their independence from the Empire.
Louis demanded the Aquitainians send Pepin to Aachen to learn the ways of good governance, which they refused.
He guided Oscar's forces up the Garonne to Toulouse, giving them an opportunity to scout the land for plundering.
Pepin made him dux Wasconum, to help his fight against Sans II Sancion of Gascony, who had been at war with his father Pepin I. Bordeaux, the largest city in Aquitaine and then controlled by Charles, was seized by Oscar in 847, with the aid of disaffected citizens.
The Vikings now established in the Loire Valley ravaged Poitiers, Angoulême, Périgueux, Limoges, Clermont, and Bourges while Charles the Bald was busy trying to subdue Pepin.