In 1795, after the victory in Krtsanisi, Agha Mohammad Khan and his company included Ebrahim, camped in Mugan plain. where Nader Shah in 1736 in front of Notables of Iran, proclaimed himself King. Ebrahim that saw an uncrowned King as a motive for claimants, took the opportunity to offer Agha Mohammad Khan a coronation. Until that day, Agha Mohammad Khan had refused to accept the title of Shah, partly out of respect for Sultan Mohammad Mirza, a claimant member of the Safavid dynasty, who was present in Qajar Khan's camp and partly because he had not yet united all of Iran. Ebrahim wrote a letter to Shrine of Sheikh Safi al-Din, that the sword of Ismail I be send to Mughan. Astrologers found Nowruz of 1796 auspicious for the ceremony. on the appointed day, Agha Mohammad Khan sat on a marble throne, wearing a silk robe; He wore the diamond Daria-i-Noor - which he had taken from Lotfali Khan - and tied the sword of Ismail I on his waist. then Ebrahim placed the crown of Kiani adorned with pearls on Agha Mohammad Khan, and called him the Shah of Iran. After that, Agha Mohammad Khan marched to Mashhad to subdue Shahrokh Afshar, while Ebrahim went to Tehran.