Marca Hispanica
During the first centuries of the Reconquista, the Franks drove the Muslims south of the Pyrenees. To prevent future incursions, Charlemagne created the Marca Hispanica in 790 CE, which consisted of a series of petty kingdoms serving as buffer states between the Frankish kingdom and Al-Andalus.