 During Abd al-Rahman I´s military campaign across the Ebro region (781), the Cordovan commander received the submission of Ibn Belaskut, or Galindo Belascotenes, in Cerdanya.Under Carolingian pressure, Cerdanya became a Frankish vassal about 785.The county of Cerdanya has its origin in the Spanish Marches established by Charlemagne.