Cossacks were re-settled on the lower Terek Delta, and the fort of Kizlyar was founded. Thus in 1735 three hosts were formed: Grebenskoye (Гребенское Rowing) from the descendants of the earliest Cossacks, Tersko-Semeynoye (Терско-Семейное Terek-Family) from the re-settled Agrakhan Cossacks up to Kizlyar, and Tersko-Kizlyarskoye (Терско-Кизлярское Terek-Kizlyar) from the Agrakhan Cossacks as well as Armenians and Georgians. When the Kalmyks arrived in the northwestern Caspian a combined campaign was waged against Temryuk during the Russo-Turkish War (1735–1739), where the Terek Cossacks were led by Atamans Auka and Petrov. In 1736 and again in 1765 the right bank of the Terek, still nominally Cossack property, was offered to Chechens who wanted to adopt Russian patronage and re-settle there (noting that historically, the lands immediately north of the Terek river were indeed Chechen before the Mongol invasion and even to a degree after it, and the Chechen highlands were dependent on their agricultural production). By the latter half of the 18th century, relations between the Cossacks and the mountain people began to sour. In 1765 the outpost of Mozdok was founded, which became an immediate target for Kabardins who attacked the Terek line and Kizlyar. In 1771 Yemelyan Pugachev arrived in Terek, and, to show loyalty, Ataman Tatarintsev arrested him. Pugachev fled and the Pugachev Rebellion in 1772–1774 gained no support on the Terek. Caucasus War (1770s–1860s) The Russo-Turkish War (1768–1774) and the resulting Treaty of Küçük Kaynarca gave Russia the pretext under which they could begin their expansion into the Caucasus, marking the start of the century-long Caucasus War. In 1769–1770 almost half of the Volga Cossacks were re-settled around Mozdok. In 1776 further settlers arrived including more of the Volga Cossacks (the remaining Cossacks on the lower Volga were separated into the Astrakhan Cossacks Host) and the Khopyor Cossacks from the eastern Don territory. These formed the Azov-Mozdok defence line. Major foreposts for Russian expansion into the central Caucasus were founded by the re-settlers including: Giorgiyevsk in 1777 by the Khopyor regiment, and Vladikavkaz in 1784. During this early phase several high-profile battles took place. In June 1774 Devlet-Girey sent a massive Kabardin Army against the Terek Cossacks, on 10-11 of June the stanitsa of Naurskaya was heroically defended against the invaders and in 1785 Kizlyar was defended against Sheikh Mansur. In 1788–91 the Terek Cossacks took part in three campaigns which took them to the Circassian port of Anapa