to Shternshants. On 12 December 1727, a treaty was signed between the Russian and Ottoman empires at the village of Mabur (near Shamakhi). According to the decision of the representatives of the both states, the Russian troops kept a share of Mushkur, Niyazabad, Javad, Salyan, Lankaran, Astara and Qizilaghaj regions and Talish Mountains, but without using weapons. After capture of Astara, Shternshants headed for Lankaran with his army. Mir Aziz Khan initially had a negative attitude towards to the arrival of Russian forces. Learning the enemy position of the Lankaran's ruler, Shternshants sent his troops there, but Mir Aziz Khan avoided military clashes, except small skirmishes. Finally, Mir Aziz Khan found that they could not resist the Russian troops, so accepted the patronage of the Russian Empire and undertook to pay at least 5,000 manats a year. Shternshants ordered to build a fortress in Astara and in the village of Jil at the Lankaran's countryside. In connection with Dolgorukov's return to Moscow in 1728, the administration of Gilan and Astara was entrusted to Levashov. According to Levashov, Mustafa Pasha of Ardabil repeatedly tried to persuade Musa Khan to take his side. The Ottomans, with the help of a person called Veysel, and other locals who had attracted to the Ottoman side, inflicted heavy damage on the Russian government of the Caspian coast. In 1728, Veysel carried out a series of guerrilla raids on Astara and other districts. Levashov informed Ivan Neplyuyev (1693–1773), the Tsar's secret envoy to Constantinople, about these events and wrote that he attacked Astara province with 600-700 troops. On 28 August 1730, general Famitsy informed Dolgorukov that Musa Khan had left one of his sons in Rasht and the other in Astara and joined the Mohammad-Qoli Khan, the Ottoman governor of Khalkhal. Jafar Sultan and the ruler of Karganrud, Zarb-Ali Beg, also joined them. The main reason for his departure was the boundless suspicions of Russian general Famitsy. It seems that the Russian government not only limited the power of the local feudal rulers, but also treated them with suspicion and strict control. Levashov informed the Empress Anna () that Musa Khan attacked the Cossack squads, killed 3 soldiers and wounded 3 soldiers. This time, Musa Khan was seen with Mohammad-Qoli Khan in Ardabil. According to Levashov, in September 1730, many insurgents gathered in Lankaran and Arkivan districts. As the whole of Karganrud revolted, general Famitsy sent