staying overnight in Pamplona, on his way back his army was attacked in Roncevaux in 812, but narrowly escaped an engagement at the Pyrenean passes. Seguin (Sihiminus), count of Bordeaux and Duke of Vasconia, seemed to have attempted a detachment from the Frankish central authority on Charlemagne's death. The new emperor Louis the Pious reacted by removing him from his capacity, which stirred the Basques into rebellion. The king in turn sent his troops to the territory, obtaining their submission in two campaigns and killing the duke, while his family crossed the Pyrenees and continued to foment risings against Frankish power. In 824, the 2nd Battle of Roncevaux took place, in which counts Aeblus and Aznar, Frankish vassals from the Duchy of Vasconia sent by the new King of Aquitaine, Pepin, were captured by the joint forces of Iñigo Arista and the Banu Qasi. Before Pepin's death, emperor Louis had appointed a new king in 832, his son Charles the Bald, while the Aquitanian lords elected Pepin II as king. This struggle for control of the kingdom led to a constant period of war between Charles, loyal to his father and the Carolingian power, and Pepin II, who relied more on the support of Basque and Aquitanian lords. Ethnic make-up in the Early Middle Ages Despite the early conquest of southern Gaul by the Franks after the Battle of Vouillé in 507, the Frankish element was feeble south of the Loire, where Gothic and Gallo-Roman Law prevailed and a small Frankish settlement took place. However scarce, some Frankish population and nobles settled down in regions like Albigeois, Carcassonne (on the fringes of Septimania), Toulouse, and Provence and Lower Rhone (the last two not in Aquitaine). After the death of the king Dagobert I, the Merovingian tenure south of the Loire became largely nominal, with the actual power being in the hands of autonomous regional leaders and counts. The Franks may have become largely assimilated to the preponderant Gallo-Roman culture by the 8th century, but their names were well in use by the ruling class, like Odo. Still, in the Battle of Toulouse, the Aquitanian duke Odo was said to be leading an army of Aquitanians and Franks. On the other hand, the Franks did not mix with the Basques, keeping separate paths. In the periods before and after the Muslim thrust, the Basques are often cited in several accounts stirring