[1][2] El Cid had joined forces with Peter I of Aragon later that year in Burriana to cement an alliance with the end goal of doing battle with the Almoravids.
Under this agreement, El Cid departed in December 1096 with the aid of Aragonese troops to bring weapons, ammunition, and general supplies to the castle of Sierra de Benicadell.
Throughout January 1097, from that position, he threatened and pestered the forces of El Cid and Peter I of Aragon who, nevertheless, managed to reach the castle at Sierra de Benicadell and resupply it.
In addition, General Muhammad had managed to bring a fleet of ships, both Almoravid and Andalusian, onto the nearby seashore from which archers and crossbowmen were able to catch the Christian forces in a crossfire.
The situation appeared desperate, but "El Cid" harangued his troops one morning, ordering them to conduct a frontal charge and assault on the Almoravid forces, breaking their center.