This mosque, which was built on the ba­sis of a project by the well-known ori­ental architect Sheikh Bahaddin Muham­mad Amili, is known as a Friday mosque. A double minaret was attached to this building in 1776. The mosque, which was built by the Safavid ruler Shah Abbas I in 1606, was refurbished by Javad Khan twice in the 17th century. There are 12 cells built in honour of the 12 imams in­side the mosque. A madrasah operated here previously. One of the remarkable features of the mosque is that the sha­dow which falls on the western wall of the building disappears in the afternoon. This means that it is time for the afterno­on prayer. There are similar mosques in Ardabil, Isfahan and Gazvin.