The Battle of Martorell was fought in 1114 between the Almoravids and a coalition of the Christian counties of Barcelona, Urgell and Cerdanya led by Ramon Berenguer III.
Once freed from the presence of El Cid in Valencia, the Almoravids were able to begin campaigns towards the Kingdom of Aragon and the Catalan counties. In 1114, Muhammad ibn Aisha and Muhammad ibn al-Hajj, governors of Zaragoza and Valencia, respectively, led an army from Valencia through Lleida via Seo de Urgel and Segarra to the plain of Barcelona. They then attacked Bages causing substantial damage to the Monastery of Sant Benet de Bages.
Concurrently, the Almoravids of the Balearic Islands landed at the mouth of the Besòs River attacked Barcelona and destroyed Sant Adriàde Besòs and Sant Andreu de Palomar.
As the Almoravids were returning to their kingdoms laden with booty, they were attacked in an ambush near Martorell by the combined armies of Barcelona, Urgell and Cerdanya led by Ramon Berenguer III. Also participating in the battle were the Christian forces from the fortress at Martorell which had been previously evacuated by Udalard Ramon de Rosanes during the Almoravids northern march.
Al-Hajj and most of his army were killed. The remainer of the Almoravids were pursued down the coast of Salou. Although ibn Aisha managed to escape, he was seriously injured and died shortly thereafter.