The Battle of Aqbat al-Bakr was a battle of the Fitna of al-Andalus that took place in the area in and around Espiel, Spain. The battle took place between the Berber forces of the Caliphate of Cordoba, commanded by Sulayman ibn al-Hakam, against a Catalan-Andalusian alliance of 30,000 Andalusian Saqaliba rebels with 9,000 Catalan, trying to overthrow their Caliph overlords under the command of Muhammad ibn Hisham; Wadih al-Siqlabi, governor of al-Tagr al-Awsat; and several West Frankish counts and bishops, including Ermengol I of Urgell who was killed during the fight, Hugh I of Empúries, and Ramon Borrell of Barcelona.