The Hakim Mosque was built over the ruins of a Deylamid mosque, known as Jorjir, that dates from the 10th century
CE. Jorjir was commissioned by the Buyid minister, Sahib ibn Abbad, and portions can be seen on the northwestern part of the current mosque structure. The remaining portal of the ruined mosque was hidden for centuries and was accidentally discovered in 1957 when the wall of the Safavid mosque was washed away by rain. The portal is significant due to its intricate brickworks in the
Razi architectural style, where small pieces of bricks are used to create geometrical, floral and vegetal patterns and
Kufic inscriptions. These patterns consist of a combination of symbols; like five pairs of candlesticks, tulip, bird and scale patterns. The dated
inscription on the northern portal recognizes Ali Beyk Banay Isfahani as the architect, and Mohammad Reza Imami as the calligrapher. == See also ==