After a series of struggles the County of Barcelona (with Ausona) was taken by Frankish forces in 801. A number of castles were established in Aragon between 798 and 802 (appointment of Count Aureolus). After subduing the Basques to the north of the Pyrenees (790), Frankish overlordship expanded to the upper Ebro (794) and Pamplona (798), when Alfonso II of Asturias also came under Charlemagne's influence. Sobrarbe was not incorporated into the March, as it appears later in history and was probably within the area of influence of the County of Aragon.