Founded in the twelfth century, the current structure dates to several building phases during the fourteenth century with significant addition during the fifteenth, and eighteenth or nineteenth centuries. The high barrel-vaulted iwan leads to an expansive domed sanctuary. Large rectangular winter prayer halls flank the sanctuary and iwan, a layout that resembles the sasanian triple-iwan plan. The mosque is also significant for the early and substantial use of transverse vaulting in the rectangular winter prayer halls, a system that also has precedents in sasanian structures. In the northwest prayer hall the system is perfected,
with narrow supporting arches and wide vaults pierced with fenestrated octagonal cupolas. The tile decoration is also noteworthy, although much is restoration. The dome is articulated with geometric decorative brickwork in turquoise and white on an unglazed buff field. decorative brickwork laid in epigrams cover most wall surfaces within the sanctuary, above a turquoise tile dado with mosaic medallions that continues into the iwan. The mihrab is sheathed with naturalistic vegetal designs rendered in remarkable faience mosaic. The winter prayer halls are painted white, contrasting with the vibrant multi-colored sanctuary.