 The 737 campaign marked the end of large @-@ scale warfare between the two powers , establishing Derbent as the northernmost Muslim outpost and securing Muslim dominance over Transcaucasia . At the same time , the long wars weakened the Umayyad army and contributed to the eventual fall of the dynasty a few years later . Relations between the Muslims of the Caucasus and the Khazars remained largely peaceful thereafter , apart from two Khazar raids in the 760s and in 799 , resulting from failed efforts to secure a marriage alliance between the Arab governors or local princes of the Caucasus and the Khazar khagan . Occasional warfare continued in the region between the Khazars and the local Muslim principalities of the Caucasus until the collapse of the Khazar state in the late 10th century , but the great wars of the 8th century were never repeated . 
