The most ancient mosque of Magoki-Attari is situated in the centre of Bukhara near Lyabi-Hauz. In the early Middle Ages a temple of fire-worshippers was located here behind southern Attaron gates. The Arabs conquered Bukhara erected one of their first mosques in this place. In 1930 archeologists dug out the southern portal of the mosque with unique ornamental bricklaying and archaic carved majolica. The portal built in the 12th century is regarded as a masterpiece of Bukhara architecture. In the Late Middle Ages Magoki-Attari was a district mosque.