 After Abd ar-Rahman crossed to Spain in 756, he declared himself the legitimate Umayyad ruler of al-Andalus.The governor, Yusuf, refused to submit.After losing an initial battle near Cordoba, Yusuf fled to Mérida, where he raised a large Berber army.