The mosque, named after Hazret-Hyzr, a mythical Islamic saint and eternal wanderer stands on the southern slope of Afrasiab hill, at a crossroad behind the central bazaar. A legend says that Hazret-Hyzr helped the patron of Samarkand Kusam-ibn-Abbas to avoid death and become immortal. Once, there was a Zoroastrian temple here with sculptures of gods broken in the first years of Islam. The temple was converted into a mosque. In the heyday of Afrasiab there were double fortified southern gates, receiving caravans from Tokharistan, India and Iran. Over that place there passed an ancient aqueduct, bringing water to the town. Perhaps due to the aqueduct there appeared a cult associated with Hazret-Hyzr, who according to a legend became immortal after drinking water of eternal life. Hazret-Hyzr is respected as a saint who can grant wealth and good luck in trade and travelling. The present building was erected on the medieval foundations in1854. Carved ganch and colored paintings on the ceiling decorate the interior.