Taifa of Barcelona

The Taifa of Barcelona was a Muslim taifa that ruled Barcelona from 717 to 801. The taifa was established during the Umayyad conquest of the Iberian Peninsula, and Barcelona was renamed to Barshiluna under Moorish rule. The cathedral was converted into a mosque and taxes were levied on non-Muslims, but religious freedom and civil government was largely respected. The count and local bishop generally had day-to-day control of the local population, while the Wali was mostly concerned with military matters. In 801, Charlemagne's son Louis the Pious conquered Barcelona after a siege of several months, and the region became the "Spanish Marches" of the Frankish Empire.