sentences:  In order to retain his position and ensure peaceful relations with the shah, he gave one of his daughters to Agha Mohammad Khan's successor to the throne, Fat′h Ali Shah Qajar.During the Russo-Persian War (1804–1813), General Tsitsianov promised that Russia would recognize Ibrahim Khan as khan and agreed that Ibrahim's elder son would succeed his father, and thus an agreement was signed between Russia and Ibrahim Khan on May 14, 1805.Tsitsianov then occupied Shusha and left a Russian garrison stationed there.