The Maghoki-Attar Mosque is the oldest mosque in Central Asia. It dates from the 12th century. Remains of a Zoroastrian temple and a Buddhist temple have been found beneath it. Jews once used it in the evenings.
This site was originally occupied by a Buddhist temple, then later a Zoroastrian temple that was built in the 5th century. Zoroastrianism was a monotheistic faith and the state religion of the Persian Empire before the rise of Islam.