In 1157/1744, a daughter Bibi Marium Khatoon, was born at his uncle's home, known as Bibi Sarcar Mata Salamat, with whom the marriage of Khalilullah Ali was solemnized, who gave birth of Hasan Ali Shah. She was a good orator and visited India about at the age of 85 years in 1245/1829 with Mirza Abul Kassim to remove the internal strifes of the community. She went to live at Kera in Kutchh in 1246/1830, where she breathed her last in 1248/1832. She had been interred in Najaf, but her memorial still exists in Kera. It must be known that during his visit to Kera on December 2, 1903, the Aga Khan III had told to his followers to perpetuate the memory of the place where she laid her feet and breathed her last.
The second marriage of Khalilullah Ali had been actualized in Yazd with the sister of Aga Imam Khan Farahani in 1231/1816.
Khalilullah Ali ascended in 1206/1792, which he intimated in writing to his Indian followers. E.I. Howard had delivered his speech in the Bombay High Court in June, 1866, where he presented a few letters of Imam Khalilullah Ali, vide "The Shia School of Islam and its Branches" (Bombay, 1906, p. 85). In pursuant, on 23rd May, 1792, when asssumed the Imamate, he wrote a letter, addressed to the community of Bhavnagar, stating that he had been so fortunate as to have assumed his seat on the throne of the Imamate, and directed them to remit the religious dues to him to the care of the jamat at Muscat. Another letter dated July, 1794 also addressed to the jamats of Sind, Kutchh, Surat, Bombay, Mahim, Bhavnagar etc.
Khalilullah Ali was a brave and generous. It is related in "Athar-i Muhammadi" (pp 76-77) that a darwish asked something from Imam, and he was given a costly horse. Hunting was a favourite pastime of the noblemen in Iran. Khalilullah Ali also used to go out on regular hunting trips in the woods with his retainers and pages, preferably during the festives of Navroz and Eid-i Ghadir. He had many lands in Mahallat, Kahek and Shahr-i Babak, procuring large earnings. His followers from India, Iran, Syria, Afghanistan and Central Asia used to flock at Mahallat, whom he granted the title of darwish. Sometimes, he gave them the letters for the jamat. Some pilgrims are reported to have died in Iran, whose graves exist in Kahek. For instance, Kamadia Datardina Wandani of the darkhana jamat died in 1217/1803 and a certain Rai Pareo Janguani died in 1224/1810. Khalilullah Ali had acquired few pieces of land in Yazd for the Iranian Ismailis, and himself also moved to Yazd in 1230/1815.
Sayed Karamali Shah was an Iranian Ismaili, who lived in Mahallat. He mostly remained in the company of Mirza Muhammad Bakir, who taught him the esoteric doctrines of Ismailism. Sayed Karamali had been sent to Badakhshan and Chitral, where he launched pervasive mission. He also went to Yasin, whose ruler was Raja Khushwaqt I (1640-1700), the founder of Khushwawaqt dynasty. Sayed Karamali had devoted his life in the Ismaili mission and died in Yasin.
Aga Muhammad Khan Qajar had founded the Qajarid dynasty in Iran and made Tehran as his capital in 1210/1796. He concluded a truce with the Russians, and accordingly, the Qajarid retained the occupation of Jurjan and Taghlas. In 1206/1792, Aga Muhammad Khan seized Shiraz and sent his nephew, Fateh Ali to conquer Kirman. Fateh Ali replaced Mirza Sadik, the cousin of Imam Abul Hasan Ali, and himself became the governor of the provinces of Fars, Kirman and Yazd.
Aga Muhammad Khan then turned to the Afsharids of Khorasan, and invaded Mashhad in 1210/1796 and defeated them. Meanwhile, the Russians once again attacked the northern region of Iran, therefore, Aga Muhammad Khan had to take field, where he was killed by his own two slaves in 1211/1797, when he was about 57 years old. He ruled over a great part of Iran for a period of 18 years and 10 months, and was succeeded by his nephew, Fateh Ali Shah, who was engaged in expelling his enemies at that time, such as Russia, Turkey, the Uzbeks and Afghans. France and England had also attacked the Iranian ports and borders for extending their influences.