1777. Baba Khan sought shelter with his uncle Morteza Qoli Khan Qajar in the village of Anzan (near Astarabad), where he stayed for two years. Following the death of Karim Khan in 1779, Baba Khan shifted his allegiance to Agha Mohammad Khan, who had returned to Mazandaran and overpowered Morteza Qoli and two other brothers in Barforush. Albeit Agha Mohammad Khan had been castrated at a young age, he married Baba Khan's mother in Sari and practically became his stepfather and guardian. In 1780, Baba Khan and Agha Mohammad Khan were captured in Baforush by the latters brother Rezaqoli Khan Qajar, who was displeased of the favour that Baba Khan received by Agha Mohammad Khan. They were eventually released, and in 1781 Baba Khan seized Damghan from Qader Khan Arab Bestami, thus recovering his father's former domain. Baba Khan also captured and married Qader Khan's daughter Badr Jahan. In 1783, Baba Khan married his first Qajar wife, Asiyeh Khanum in Sari. The marriage was a political union organized by Agha Mohammad Khan to make peace with the Yokhari-bash branch of the Qajars, the clan of Asiyeh Khanum. Following Agha Mohammad Khan's accession to the throne at Tehran in 21 March 1786, Baba Khan was designated as his heir and vice-regent. Baba Khan took part in his uncle's war with the Zands in southern Iran, where he in 1787 narrowly succeeded in defeating the governor of Yazd, Mohammad-Taqi Bafqi, who acknowledged Qajar suzerainty. Baba Khan then went to Gilan to protect it against Qajar chiefs whose loyalty was questionable. Baba Khan was governor of Fars when his uncle was assassinated in 1797. Baba Khan then ascended the throne and used the name of Fath Ali Shah (with the word "shah" added on his name). He became suspicious of his chancellor Ebrahim Khan Kalantar and ordered his execution. Hajji Ebrahim Khan had been chancellor to Zand and Qajar rulers for some fifteen years. Much of his reign was marked by the resurgence of Persian arts and painting, as well as a deeply elaborate court culture with extremely rigid etiquette. In particular during his reign, portraiture and large-scale oil painting reached a height previously unknown under any other Islamic dynasty, largely due to his personal patronage. Fath Ali also ordered the creation of much royal regalia, including coronations chairs; the "Takht-e Khurshīd" or Sun Throne; the "Takht-e Nāderi" or Naderi Throne, which was