By 729, the small fortress of Kamarja near Samarkand (in modern Uzbekistan) was one of the last remaining Arab strongholds in Transoxiana, when it was attacked by the Türgesh under the personal direction of their ruler, Suluk.
[1][2] The loyalty to the Caliphate of Transoxiana's native Iranian and Turkic populations and of the autonomous local rulers remained questionable, and in 719 the latter requested aid from the Chinese and their Türgesh vassals.
[4][5] In 724, governor Muslim ibn Sa'id al-Kilabi and his army suffered a heavy defeat (the so-called "Day of Thirst") at the hands of the Türgesh when he tried to recapture Ferghana.
By 728, in the face of the Türgesh attacks and a widespread anti-Arab revolt, only Samarkand and the two fortresses of Kamarja and Dabusiyya on the Zarafshan River remained in Arab hands in all of Transoxiana.
[6][7][8] In 729, the new Arab governor, Ashras ibn Abdallah al-Sulami, managed to cross the Oxus River and reach Bukhara against stiff opposition by the Türgesh and their Soghdian allies.
[11] The subsequent siege of Kamarja, narrated in al-Tabari's History of the Prophets and Kings is, in the words of the historian Hugh N. Kennedy, "one of the most vividly described set pieces of the war".
[12] The Türgesh army under the khagan Suluk, which included the contingents of Ferghana, al-Taraband (capital of Shash, modern Tashkent), Afshinah (a town near Samarkand), Nasaf, and Bukhara, approached along the Bukhara–Samarkand road.
When they reached Kamarja, the Türgesh and their allies left the road and made camp, but the town's garrison was unaware of their approach as their movements were screened by a hill.
A fierce fight developed as the Türgesh attacked the gates and tried to enter the town, until the Arabs threw burning bundles of wood at them, driving them back across the moat.
[19][20] The narrative of the siege in al-Tabari, evidently drawing from eyewitness accounts, continues with isolated episodes: the determined Türgesh assault on the gate, with five of them managing to climb the wall before being repelled, the Soghdian prince of al-Taraband who with his companions assaulted a breach in the wall which led into a house only to be killed by the house's elderly and sick owner and his family, how the Arabs used the wooden boards lining the irrigation ditches to improve their earthworks, or the time when the khagan, coming to inspect the Arab fortifications, received an arrow-shot in the face but was saved by his helmet's nose-guard.
Almost all of Transoxiana, except for Bukhara and Samarkand, was lost, and even in neighbouring Khwarizm, a revolt broke out, which was nonetheless swiftly suppressed by the local Arab settlers.