William met this force and defeated them. He met the Muslim forces again near the river Orbieu at Villedaigne but was defeated, though his obstinate resistance exhausted the Muslim forces so much that they retreated to Spain. In 801, William commanded along with Louis, King of Aquitaine a large expedition of Franks, Burgundians, Provençals, Aquitanians, Gascons (Basques) and Goths that captured Barcelona from the Ummayads.