 Cerdanya was at this time predominantly Basque, and Odo had a pro-Basque policy in the face of Charles Martel and the Franks.Moorish rule was soon purely nominal; the Cerdanya was conquered by Charlemagne shortly after the surrender of Girona in 785.The first Count of Cerdanya that we know of by name was Borrell I (798), who was subject to the Count of Toulouse.