Magoki-Attori: Bukhara's Oldest Mosque
The mosque in the pit: five metres below modern Bukhara, on a site that was a bazaar and a temple before it was a mosque, and a carpet museum today.

Walk from Lyabi-Hauz towards the trading domes and you pass a building in a hole. Its doorway is below your feet, its facade starts somewhere around your knees, and most people glance down, take one photo and keep walking.
That is Magoki-Attori, the oldest surviving mosque in Bukhara and one of the oldest in Central Asia. The hole is the point. The mosque didn't sink; the city rose around it.
Why it's underground
Old cities built in mud brick get taller. Buildings collapse, the rubble is levelled, a new street runs over the top, and after a thousand years of that the ground floor of the 12th century is several metres down. Magoki means something like "in a pit", and the name is descriptive rather than poetic.
By the 20th century the mosque was buried almost to its arches. Archaeologists dug it out in the 1930s, removing around five metres of accumulated layers to expose the southern facade, which is why you now look down into a sunken courtyard to see it.
The excavation is also how the older history came out. Below the mosque, diggers found earlier floors and structures, and the site is generally understood to have carried a pre-Islamic temple and, next to it, a bazaar where spices and herbs were sold. Attori refers to those spice and herb sellers. A trade that gave the mosque its name was going on here before the mosque existed.
What survives, and from when
Dates here need care, because the building is a stack rather than a single project. The usual account runs like this: a mosque stood on the site by the 9th century, was destroyed, and was rebuilt in the 12th century, with further repairs and a second portal added later, commonly dated to the 16th century.
What you can actually see is easier to pin down. The southern facade is the 12th-century work and the reason to stop. It is made almost entirely of brick, cut and laid into patterns: half-columns, panels of woven geometry, bands of Kufic script turned into ornament, with small inserts of carved terracotta and a little glazed tile. There is no large-scale tilework of the kind Bukhara is known for later, because that technology had not arrived yet.
Stand at the bottom of the steps and look at the shadows rather than the colours. The pattern is cut deep, so the facade reads differently at every hour: flat at midday, strongly modelled in the late afternoon. That was the design intention, and it's the best argument for timing your visit.
The carpet museum inside
The interior has held a museum of carpets and textiles since the early 1990s. It is small, three or four rooms under low brick vaults, with Uzbek, Turkmen and Persian pieces hung on the walls and laid over rails.
Two things make it worth the entry fee. First, the space: the vaults, columns and old brickwork are the exhibit as much as the carpets, and you cannot see them from outside. Second, the labelling covers weaving regions, which is genuinely useful before you start haggling in the trading domes. If you want the deeper version, our guide to Uzbek carpets explains what to look for and what things cost.
Expect 20 to 30 minutes inside. There is no English guide on staff, the lighting is dim, and the collection is a fraction of the size of the textile museums in Bukhara's madrasahs. Go for the building first, the carpets second.
How to look at brick
Most visitors arrive in Bukhara fluent in tile and blind to brick, which is the wrong way round for this building. Three habits help.
Look for the joints first. In ordinary walling the mortar lines are straight and dull; here the bricks are cut at angles, stood on end, paired and recessed so that the joints themselves draw the pattern. Then look for scale changes: a band of large geometric work will sit directly above a band of fine, almost textile-like detail, and the contrast is what stops the facade going flat.
Finally, find the writing. Several panels carry Kufic script stretched into vertical strokes until it behaves like ornament. You do not need to read Arabic to see it; once you notice that the repeating uprights are letters, the facade stops being abstract.
Visiting
The mosque stands on the lane between Lyabi-Hauz and Toqi Telpak Furushon, one of the covered trading domes, about three minutes' walk from either. You will pass it several times without planning to.
- Entry: a small separate ticket for the museum, paid at the door; the exterior costs nothing (last checked: July 2026).
- Hours: roughly 9am to 5 or 6pm, longer in summer, sometimes closed at lunch.
- Time needed: 10 minutes outside, 30 with the museum.
- Best light: late afternoon, when low sun rakes across the brick and the patterns come out.
- Access: the only way in is down a flight of uneven steps into the excavated pit.
Pair it with the Po-i-Kalyan complex for a jump of two centuries in brickwork, or with the Ark citadel if you're working chronologically. Our Bukhara travel guide sets out a walking order that takes in all three without doubling back.
Why it matters more than it looks
Bukhara's famous buildings are mostly 15th to 17th century, and they share a visual language: big portals, blue tile, symmetry. Magoki-Attori comes from before that, when decoration meant brick laid with enough precision to make patterns out of light and shadow alone.
It also survived what the rest of the pre-Mongol city didn't. Bukhara was sacked in 1220, and very little from before that date is still standing. The fact that this one was half-buried is probably why it's still here at all.
The historic centre of Bukhara has been on UNESCO's World Heritage list since 1993, and Uzbekistan's official tourism portal has a page on the mosque with its construction history. Five minutes and a set of steps are all it asks of you.
Featured image: Petar Milošević (CC BY-SA 4.0) via Wikimedia Commons.