In May 1750, they stormed the gates of Isfahan—its governor Abu'l-Fath Khan Bakhtiari and other prominent residents assembled to protect the fortress of the city, but agreed to surrender and collaborate with them after Ali Mardan's reasonable proposals. Abu'l-Fath, together with Ali Mardan and Karim Khan, formed an alliance in western Iran under the cover of restoring the Safavid dynasty, appointing a 17 year old Safavid prince, Abu Turab, as a puppet ruler—on June 29, Abu Turab was declared shah, and assumed the dynastic name of Ismail III.