After these campaigns, there were again numerous embassies between Charlemagne and the Abbasid caliph Harun al-Rashid from 797,[16] apparently in view of a Carolingian-Abbasid alliance against Byzantium,[17] or with a view to gaining an alliance against the Umayyads of Spain.[18]