The Magoki-AttoriĀ is an Islamic mosque dating back to Zoroastrianism Mosque in the city’s centre is an example of an urban mosque in a residential quarter. The mosque was built on the site of the pre-lslamic Moh temple mentioned above. Excavations have revealed the fact that even under the Samanids there was a six-pier mosque, which apparently was also domed. However, it was rebuilt substantially in the twelfth century; the floor level was upgraded and the main facade received a new design that survives with little damage only. By the sixteenth century, the thickness of cultural layers had increased so much that mosque seemed to sink deep into the soil and its facade was unearthed only as a result of excavations carried out in the 1930s.