After the Islamic Moorish conquest of most of the Iberian Peninsula in 711–718 and the establishment of the emirate of Al-Andalus, an Umayyad expedition suffered a major defeat at the Battle of Toulouse and was halted for a while on its way north. Odo of Aquitaine had married his daughter to Uthman ibn Naissa, a rebel Berber and lord of Cerdanya, in an attempt to secure his southern borders in order to fend off Charles Martel's attacks on the north. However, a major punitive expedition led by Abdul Rahman Al Ghafiqi, the latest emir of Al-Andalus, defeated and killed Uthman, and the Muslim governor mustered an expedition north across the western Pyrenees, looted areas up to Bordeaux, and defeated Odo in the Battle of the River Garonne in 732.