Juma Mosque, Shamakhi
40.6268° N · 48.6439° E · Mosque
Photo: Shahin Shahbaz · CC BY-SA 3.0 · Wikimedia Commons
Juma Mosque, Shamakhi is a mosque in Azerbaijan. Tradition dates the mosque's founding to the eighth century. The free Lokali audio guide runs 7 minutes.
✓ Published October 2026 · how we write these guides
Visitor facts
| Lokali audio guide | 7 min · free |
|---|---|
| Type | Mosque |
| Location | Shamakhi, Azerbaijan |
| Coordinates | 40.6268, 48.6439 |
| Languages | 50+, in the Lokali app |
The story
Stand still for a moment in front of the mosque. Listen. Shamakhi is a hill town, and the air here moves. A breeze comes down from the foothills of the Greater Caucasus. It carries the dry smell of stone and, in season, the green smell of vineyards on the slopes outside town. Pale stone rises in front of you, warm in the sun and cool in the shade. This is the Juma Mosque. In Azerbaijani the name means the Friday Mosque, the main mosque where a community gathers for Friday prayers.
Here is the first thing that surprises most visitors. The building in front of you looks clean and almost new, and in a sense it is. But the site carries one of the longest histories of any mosque in the Caucasus. Tradition, supported by an old inscription, places its founding in the eighth century. That is the early Islamic period, only about a hundred years after Islam first reached this region. So you are looking at a fresh building on very old ground.
To understand why a mosque this old matters here, picture Shamakhi as it once was. For centuries, this town was the capital of Shirvan. Shirvan was a historic kingdom on the western shore of the Caspian Sea. Its rulers were the Shirvanshahs, a long line of local kings. Later they also built the palace complex in Baku. Shamakhi sat on caravan routes that carried silk, carpets and spices between Persia, Russia and the lands beyond. A Friday mosque in a capital city was more than a place of worship. It was the heart of public life.
Now look again at the stone and think about the ground beneath it. Shamakhi lies in one of the most active earthquake zones in the Caucasus. Over the centuries, strong earthquakes have struck the town again and again. Each time, much of the city fell, and each time people rebuilt. The mosque followed the same pattern. The walls you see today are the latest chapter in a long cycle of collapse and repair.
Two earthquakes stand out in the town's memory. One came in 1859, and it was so destructive that the provincial capital moved from Shamakhi to Baku. That single decision helped turn Baku into the large city it is today. Another severe earthquake struck in 1902. It badly damaged the mosque again. A reconstruction followed in the early twentieth century, but this building's troubles were not over.
In 1918, the region was caught in the violence that followed the collapse of the Russian Empire. Shamakhi suffered terribly in that year. Fighting swept through the town, many residents were killed, and the mosque was set on fire. For decades afterwards, during the Soviet period, the building stood damaged and largely unused for worship. Religion was discouraged under Soviet rule, and many mosques across Azerbaijan were closed or turned to other purposes.
Here is the second surprise. The work that produced the building you see today is recent. A major reconstruction began in the late 2000s and finished in the early 2010s. Before the builders raised the new walls, archaeologists studied the site. Their excavations uncovered older foundations and layers from earlier periods of the mosque's life. So the modern building stands directly on top of the evidence of its own past.
Take a closer look at the architecture itself. The mosque follows a traditional plan, with domes rising over the prayer hall and tall, slender minarets beside it. A minaret is the tower from which the call to prayer is traditionally given. Notice the rhythm of arches across the façade. Arches like these spread weight down into the walls, a practical choice in a land where the earth shakes. The stone is light in colour, so it changes with the hour, pale gold in the morning and softer grey toward evening.
If you go inside, remember that this is a working mosque, not a museum. Dress modestly. Shoulders and knees should be covered, and women are usually asked to cover their hair. You will remove your shoes before you step onto the carpets. Inside, the noise of the street drops away. The space feels wide and calm. Look up at the inner surface of the domes, and look along the qibla wall, the wall that faces toward Mecca and guides the direction of prayer.
Notice the carpets under your feet as well. Azerbaijan has a deep carpet-weaving tradition, and Shirvan carpets in particular are known among collectors for their geometric patterns. Not every carpet in a mosque is a historic piece, of course. But the act of covering a prayer floor with woven wool connects this hall to generations of local craft. The soft give of the carpet after the hard stone outside is part of the experience of entering.
If you visit at prayer time, you may hear the call to prayer rise from the minarets. Many visitors find this the most moving moment of a visit. Step back, keep quiet, and let the worshippers pass. Friday midday prayers bring the largest gathering of the week. On other days the courtyard is often quieter, and you may share it with only a few local families and travellers.
When you walk out, take a moment to look at the town around the mosque. Shamakhi today is a modest provincial centre, a couple of hours' drive west of Baku. Low houses climb the slopes. Beyond them, the land opens into hills and vineyards. Shamakhi has a long wine tradition, and local grape varieties still grow in the district. Up in the hills nearby, you can also find the Yeddi Gumbez, a cemetery of domed tombs linked to the Shirvan rulers.
Before you leave, turn back once more and look at the whole building. Think of the layers under your feet. The eighth-century founders. The kings of Shirvan. The earthquakes, the fire, the quiet Soviet years, and the masons who raised these walls again in our own time. The stone in front of you is new. The habit of rebuilding it is very old. As you walk away, listen for the wind again, and for the call to prayer that may follow you down the street.
Key facts
What to look for
Practical tips
Common questions
Is there a free audio guide to Juma Mosque, Shamakhi?
Yes — the Lokali app narrates Juma Mosque, Shamakhi free of charge in 50+ languages. The guide runs about 7 minutes, covers the history, what to look for on site and practical tips, and works offline once downloaded.
Where is Juma Mosque, Shamakhi?
Juma Mosque, Shamakhi is in Shamakhi, Azerbaijan, at 40.6268, 48.6439. Tap the map link on this page for directions from where you are.
What is Juma Mosque, Shamakhi known for?
Tradition dates the mosque's founding to the eighth century. Shamakhi was once capital of the Shirvan kingdom.
What should you look for at Juma Mosque, Shamakhi?
The rhythm of arches across the main façade. Slender minarets rising beside the prayer hall. The inner surface of the domes above the hall.
What should you know before visiting Juma Mosque, Shamakhi?
Dress modestly with shoulders and knees covered. Women should bring a scarf to cover their hair.
When is the best time to visit Juma Mosque, Shamakhi?
Visit late afternoon for softer light on the stone.
On the map
Opens directions to Juma Mosque, Shamakhi from your location.
Hear Juma Mosque, Shamakhi in your language
The full story, narrated, in 50+ languages. Download it before you go and it plays offline, at your own pace, with no ticket and no tour group.