The complex was originally a pilgrimage site for Jews; it contained the tomb of the prophet Ezekiel built in the 7th century.
[1] However, the Twelver Shi'a believe this site has its roots on a shrine built by Abraham, indicated by the description of the Mahdi by Muhammad al-Jawad, the ninth Imam.
[2] In 1316, the Il-khan Öljaitü acquired the right of guardianship over the tomb and his son Abu Sa'id Bahadur Khan fully rebuilt the mosque.
[1] In 2014, the site, in particular the minarets, were restored by the Iranian companies and the waqf of the Shi’a community, which cost approximately 800 million dinars.
[9] To the left of the southern wall is a small commemorative spot which represents a place featured in a legend; it is said that it is where Ali prayed while staying in the mosque on a campaign against Kharijites.