In 824 the second Battle of Roncevaux took place, when counts Eblo and Aznar Galindo (identified as Aznar Sánchez too), Frankish vassals and the latter appointed Duke of Gascony, were captured by the joint Pamplonese and Banu Qasi forces, strengthening the independence of Pamplona. In the early 9th century the lands around the Adour river were segregated from the Duchy under the name of County of Vasconia. Count Aznar's successor, Sans Sancion, fought against Charles the Bald, as Charles didn't recognize him as legitimate.