 In 1225, al-Bayyasi's band, accompanied by the Castilian army, descended from the Baeza hills.With al-Andalus practically denuded of Almohad troops, they ravaged the lands of Jaén, the vega de Granada and by the end of the summer, al-Bayyasi had captured the city of Córdoba.Seeing the vacuity, Alfonso IX of Leon and Sancho II of Portugal also took the opportunity to launch their own raids.