After repelling Muslim incursions as far north as Tours in 732, the expanding Frankish Empire set about creating a buffer zone of Christian counties in the south that became historiographically known as the "Marca Hispanica" or the Spanish March. The first county to be conquered from the Moors was Septimania which became Roussillon (with Vallespir), following the conquest of Narbonne (759). In 785 the County of Girona (with Besalú) on the south side of the Pyrenees was captured. Ribagorça and Pallars were linked to Toulouse and were added to this county around 790. Urgell and Cerdanya were added in 798. The first records of the county of Empúries (with Perelada) are from 812, but the county was probably under Frankish control before 800. After a series of struggles, Charlemagne's son Louis took Barcelona from the Moorish emir in 801 and set up the County of Barcelona.