Samandar became the second capital of the Khazar Khaganate in the 720s, after Balanjar was abandoned as a result of the Umayyad invasion. For the same reason, the capital was moved again further north to Atil, sometime between 730 and 750.