In the first half of the XVII century, Barda became a battleground of the Arab-Khazar wars. In 628, the city was captured by the Khazars. Attacks of Sasanian feudal lords on Barda in 639 were repelled by the Albanian king Javanshir. During the reign of the Caliph Uthman (644-656), Barda was taken by the Arabs. In 752, the city became the capital of the Arran region.