In July 1134, King Alfonso I of Aragon the Battler, known by the Muslims as Ibn Rudmir (literally "son of Ramiro) or al-Farandji, laid siege to the town of Fraga with an army from Aragon. The Almoravid response was swift and decisive. The Emir of Cordoba, son of the caliph, equipped a force of 2,000 knights, the Emir of Murcia and Valencia put together 500 knights, and the governor of Lleida another 200. Once these forces combined, they marched to the relief of Fraga.
The day of 17 July 1134 brought the arrival of an Almohad relief force, led by the governor of Lérida, Ibn ‘Iyad. Seeing reinforcements, the besieged Fragans sallied out, however Alfonso I, still confident in his numerical and tactical advantage, rallied his troops. His entourage clashed with the cavalry of the emir of Murcia, Yahya ben Ghaniya. The Almoravid cavalry decimated the Aragonese soldiers. Upon seeing this, the townspeople, most of whom were of Arab origin, exited the city and fell upon the Aragonese camp pillaging and killing a majority of the soldiers there. They made off with all of the Aragonese army's provisions and took them back into the city of Fraga. At this moment, the emir of Cordoba launched a final attack with his cavalry and broke the Christian troops once again. Having lost a majority of his soldiers, Alfonso I the Battler was obliged to flee and made for Zaragoza. He died 7 September 1134.