In 882 the
Banu Qasi ruler
Muhammad ibn Lubb al-Qasawi who, like his father Lubb ibn Musa before him, had previously had good relations with the
Christian kingdoms to his north, joined in a coalition with the forces of the
Cordoban emir Muhammad I of Córdoba. The emir, as a gesture of good will, sent his son
al-Mundhir of Córdoba to join ibn Lubb on raids along the
Ebro. Ibn Lubb made his way from
Zaragoza along the Ebro and devastated the valleys he passed through in
La Rioja, which at the time belonged to the king of Zaragoza, Isma'el ibn Musa, and the King of
Tudela, Navarre, Fortun ibn Musa, both of whom were uncles of ibn Lubb. == Battle ==