 He met Rodrigo in Valencia and with a large force already assembled they decided to reinforce the southern frontier fort of Benicadell, rebuilt by Rodrigo in 1091.As they were passing by Xàtiva they were met by an Almoravid force under the command of Mohammed, the nephew of Almoravid leader Yusuf ibn Tashfin, and the commander whom Rodrigo had defeated at the Battle of Cuarte in 1095.They decided to hastily restock Benicadell and retreat to Valencia via the coast, but were met at the Battle of Bairén by Muhammad's forces encamped on the high ground that reached almost to the sea.