In 731, the eastern Pyrenees were under the control of Berber forces garrisoned in the major towns under the command of Munnuza. Munnuza attempted a Berber uprising against the Arabs in Spain, citing mistreatment of Berbers by Arabic judges in north Africa, and made an alliance with Duke Eudo of Aquitaine. However, governor Abd ar-Rahman attacked Munnuza before he was ready, and, besieging him, defeated him at Cerdanya. Because of the alliance with Munnuza, Abd ar-Rahman wanted to punish Eudo, and his punitive expedition ended in the Arab defeat at Poitiers.