 Not having enough Arab forces at hand, the Andalusian governor Abd al-Malik realized he had little choice but to make use of the stranded Syrian force to defeat the Berber armies.In a carefully negotiated treaty, Abd al-Malik granted the Syrians permission to cross over, on the condition that they promise to return to North Africa within a year of the settlement of the Berber matter in Al-Andalus.Hostages were taken to secure Syrian compliance.