Marca Hispanica
The city was conquered by the Visigoths in the early 5th century, becoming for a few years the capital of all Hispania. After being conquered by the Arabs in the early 8th century, it was conquered after a siege in 801 by Charlemagne's son Louis, who made Barcelona the seat of the Carolingian "Hispanic March" ("Marca Hispanica"), a buffer zone ruled by the Count of Barcelona.