[2] It was built over an older plot of land planned for a mosque that was formerly owned by Safavid ruler, Soltan Hoseyn, but a mosque could not be built there until the Qajar era due to the invasion of Nader Shah Afshar and Hotaks.
[4][2] After the death of Mohammad Bagher Shafti, only the tiling of the southern part of the mosque had been completed.
The grandson of the cleric and subsequent descendants assisted in continuing the construction of the mosque.
[4] The mosque has two domes, the smaller, northeastern one over the mausoleum of Mohammad Bagher Shafti and his family.
In general, the architecture of the mosque, especially the window design[2] is student-friendly, so that it could be used as a school or madrasah in the 19th century as well.