The primary structure belonged possibly to the seljuq era, but it was destroyed by the Mongols during their invasions.
A quotation for this matter is an inscription in the old mihrab, in which it is mentioned that it is built in 623 Hijri (1226 AD) by Hassan ebn-e Arabschah in Kashan.
[1] Jane Dieulafoy describes the mihrab as follows: Abd ol-Ghaffar Najm od-Dole predicted well in 1882 the future of the mihrab as follows: The mosque had in its past glorious times high iwans, a splendid inner dome space, large yard, Shabestan and Howz hall, but despite many repairs most parts of the mosque have been destroyed.
The mosque had a special social and political importance, which can be realized from many orders written above its portal.
These orders include guidelines, regulations and commands about the buying and selling of goods and food stuffs with approved prices of that time and about the prohibition of gamble and acts against the sharia.