Built for Sayyed Roknaddin in the 15th century, the mosque is on the site of a 12th-century building believed to have itself replaced an earlier fire temple. In the courtyard there is a stairwell leading down to part of the Zarch Qanat (closed to the public). Roof access is barred to everyone except Muslim women, who are allowed up on Fridays only.
Source: Lonely Planet