Shamakhi Juma Mosque

Shamakhi Juma Mosque is one of Azerbaijan's most important historic mosques and the principal landmark of Shamakhi, the former political and cultural center of Shirvan.

According to Azerbaijan's official tourism authority, the first mosque on this site was founded in 743 AD, making it the oldest mosque in Azerbaijan and one of the earliest Islamic places of worship in the Caucasus. The building visitors see today, however, is the result of centuries of destruction, rebuilding and restoration. Shamakhi's powerful earthquakes repeatedly damaged the mosque across many centuries, it suffered again amid violence in 1918, and its present appearance reflects a major reconstruction completed in 2013.

Its most distinctive architectural feature is an unusual internal arrangement of three interconnected prayer sections, each historically organized around its own mihrab. This basic plan survived successive rebuilding campaigns and helps connect the present mosque with the much older religious building that occupied the site.

For Hikasus travelers, Shamakhi Juma Mosque should be more than a quick roadside stop between Baku and Lahij or Gabala. It is the best place to introduce the history of Shirvan, early Islam in Azerbaijan and Shamakhi's repeated destruction and renewal.

Allow approximately 30–45 minutes for a respectful visit.

What Is Shamakhi Juma Mosque?

A Juma Mosque, or Friday Mosque, is the principal congregational mosque traditionally used for communal Friday prayers.

Shamakhi's Juma Mosque occupies a particularly important place in Azerbaijani religious history because the site is traditionally dated to 743 AD. It is described as Azerbaijan's oldest mosque, one of the earliest mosques in the Caucasus, and one of Shamakhi's most important landmarks.

The present building remains an active place of worship rather than simply a historical museum. Visitors should therefore experience it as both historic monument and living mosque.

When Was Shamakhi Juma Mosque Founded?

The traditional and officially used foundation date is 743 AD, placing the foundation during the early centuries of Islam's expansion into the Caucasus.

The important distinction: the religious site dates traditionally to 743, but the visible building is not an intact 8th-century mosque. Centuries of earthquakes, reconstruction and conflict fundamentally changed its architecture.

Is It Really the Oldest Mosque in Azerbaijan?

According to Azerbaijan's official heritage and tourism sources, yes — it is consistently described as the oldest mosque in Azerbaijan, and the second-oldest in the Caucasus, after the historic Friday Mosque of Derbent.

A careful formulation: "Traditionally founded in 743 AD, Shamakhi Juma Mosque is regarded as Azerbaijan's oldest mosque and one of the earliest Islamic religious sites in the Caucasus." This avoids suggesting that all the masonry visible today dates from the 8th century.

Shamakhi and Early Islam

Shamakhi stood within an important region linking the South Caucasus, the Caspian Sea, Persia, the northern Caucasus and Islamic territories farther south. The foundation tradition of the mosque reflects the spread and consolidation of Islam in the eastern Caucasus during the early medieval period.

Over succeeding centuries, Shamakhi developed into an important political, trading, religious and literary center. The mosque remained closely connected with this wider urban history.

Shamakhi and the Shirvanshahs

For centuries, Shamakhi was closely associated with the historic state of Shirvan and the dynasty known as the Shirvanshahs. Before Baku became an important center of their rule, Shamakhi was one of the principal political centers of the Shirvanshah state, described as a former capital of the dynasty.

This creates an important connection between Shamakhi Juma Mosque, Shirvan, Baku, and the Shirvanshahs' Palace. For Hikasus travelers continuing to Baku, explaining this relationship makes the later palace visit much more meaningful.

A City Repeatedly Destroyed by Earthquakes

Few cities in Azerbaijan have been shaped as dramatically by earthquakes as Shamakhi. The region lies in a highly active seismic zone. Repeated destructive earthquakes damaged or destroyed major sections of the city across many centuries, explaining why relatively little of medieval Shamakhi survives intact today. The Juma Mosque survived only through repeated rebuilding.

The 1192 Earthquake

Official Azerbaijan tourism material identifies a devastating earthquake in 1192 as one of the major disasters in Shamakhi's history. Such earthquakes repeatedly altered both the city and its architecture. For visitors, this is important context — Shamakhi's relative lack of a large preserved medieval Old City is not because the city lacked history; much of that history was physically destroyed.

The 1859 Earthquake

One of the most destructive events occurred in 1859. The earthquake devastated Shamakhi and caused major destruction to the Juma Mosque. The damage was so severe that the administrative center of the former Shamakhi Governorate was subsequently transferred to Baku. The mosque then required extensive reconstruction.

Gasim Bay Hajibababayov and the Reconstruction

Following the 1859 earthquake, restoration work was associated with Azerbaijani architect Gasim Bay Hajibababayov, a native of Shamakhi. Official Azerbaijani records identify him as the architect entrusted with rebuilding following the disaster. The reconstruction demonstrates how successive generations repeatedly attempted to preserve the historic mosque despite the instability of the region.

The 1902 Earthquake

Another major earthquake struck Shamakhi in 1902. The mosque again suffered serious damage. Both the 1859 and 1902 earthquakes are identified as major episodes in the building's history, leading to another period of architectural planning and rebuilding during the early 20th century. Beyond these two events, the mosque and city were affected by earthquakes across several other periods as well, reflecting how consistently seismic activity has shaped Shamakhi's built heritage.

Zivar Bey Ahmadbeyov

One of the architects associated with the early-20th-century reconstruction was Zivar Bey Ahmadbeyov, an important Azerbaijani architect. Work following the earthquake involved Ahmadbeyov before later passing to Polish architect Józef Płoszko. These rebuilding campaigns illustrate that the mosque visible today incorporates architectural ideas from multiple periods rather than representing one untouched historical era.

Józef Płoszko

Polish architect Józef Płoszko subsequently prepared a major reconstruction design for the mosque. His early-20th-century project proposed a more monumental exterior composition while retaining the historic foundations and basic spatial organization. Not every element of his design was ultimately completed before later events interrupted the work.

For architecture-focused travelers, this makes Shamakhi Juma Mosque part of the broader story of European and Azerbaijani architects working in the Caucasus during the late Russian Imperial period.

The Mosque in 1918

The mosque suffered severe damage again during violence in 1918, amid the wider collapse of imperial authority and armed intercommunal conflict affecting Shamakhi and other parts of the South Caucasus.

For Hikasus international travelers, this period should be explained with care and historical context rather than reducing complex regional violence to a nationalist narrative. The essential point for the attraction page is that the mosque was damaged again and subsequently required further restoration.

Survival Through the Soviet Period

Like many religious buildings across the Soviet Union, the mosque's religious role and preservation faced challenges during the Soviet period. Official Azerbaijani historical documentation states that the building was restored again in 1980. Its continued survival therefore reflects repeated intervention across medieval, imperial, Soviet and independent Azerbaijan periods.

Major Restoration From 2010

A new large-scale reconstruction program began in March 2010, including structural reinforcement, mosque reconstruction, restoration of historic cells, landscaping, conservation of archaeological material, and preservation of the traditional architectural character. Because Shamakhi remains an earthquake-prone area, reinforcing the foundations was an important component of the project.

Reopening in 2013

The restored mosque officially reopened on 17 May 2013. This date is important because it explains the condition visitors see today. The current building is beautifully maintained, but much of its visible appearance reflects this substantial modern reconstruction.

Use: "The mosque was comprehensively reconstructed and reopened in 2013 while preserving the historic plan and important archaeological remains." Do not imply that the entire visible building has survived unchanged since 743.

Archaeological Remains

Excavations conducted during the 1970s and 1980s uncovered evidence around the mosque including madrasa remains, cells, and graves or tombstones. These archaeological features were preserved during the 2010–2013 reconstruction, helping demonstrate the wider religious complex that developed around the mosque across centuries.

The Unusual Three-Hall Design

One of the most interesting architectural characteristics of Shamakhi Juma Mosque is its three-part prayer hall. Historic architectural research describes the mosque as having three connected sections rather than one enormous uninterrupted prayer space. Traditionally, each section has its own entrance, prayer area and mihrab, while remaining connected to the neighboring halls. This makes the mosque architecturally unusual.

The Three Mihrabs

A mihrab is the niche in a mosque indicating the direction of prayer toward Mecca. Shamakhi's historic three-part arrangement means visitors encounter multiple mihrabs within the interconnected prayer structure — one of the details worth pointing out once inside. Rather than simply telling guests that the mosque is "very old," show them what makes its internal organization distinctive.

Central and Side Domes

The present mosque is dominated by a large central dome accompanied by smaller domed sections, reflecting the underlying three-part spatial organization. From outside, the combination of the central dome, smaller domes, minarets, pale stone and symmetrical composition creates the monumental appearance visitors see today. The modern reconstruction intentionally drew on the historic traditions associated with the mosque and the broader Shirvan architectural tradition.

Shirvan Architectural Tradition

The restoration documentation specifically notes efforts to respect the architectural traditions of the Shirvan school — pale local stone, strong geometric organization, domes, carefully proportioned openings, and restrained decorative surfaces. Visitors who later see the Shirvanshahs' Palace in Baku will notice a related regional preference for finely worked stone rather than extensive glazed-tile decoration.

The Interior

Inside, the mosque is spacious and much more decorative than some of Azerbaijan's austere medieval stone mosques. Visitors can see domed prayer spaces, decorative calligraphy, mihrabs, carpets, arches and repeated geometric decoration. Because the mosque remains active, the interior should be approached as a religious space rather than simply an architectural exhibition.

Natural Light

Windows around the domed areas introduce light into the prayer halls. The combination of soft interior light, carpets, pale stone and decorative surfaces creates a very different atmosphere from the brighter exterior courtyard. For photographers, the interior is attractive, but visitors should always ask or follow local rules before taking photographs during religious activity.

The Courtyard

The landscaped area surrounding the mosque gives the building considerable breathing space. During the latest reconstruction, the wider grounds and adjacent park were also improved. Take time to walk around the exterior before entering — the mosque's symmetrical form is much easier to understand from the courtyard.

Look at the Mosque From the Front

The main façade offers the clearest view of the domes, minarets, central entrance and overall symmetry. This is also one of the strongest photography positions. Begin outside with the history before entering — that prevents a living religious space from becoming the setting for a long historical lecture.

An Active Mosque

Shamakhi Juma Mosque remains a functioning Muslim place of worship. Visitors may encounter individual prayer, Friday prayer, religious gatherings and local worshippers. Sightseeing should never disrupt religious activity. Particularly on Friday around congregational prayer, access for tourists may be limited or inappropriate. Schedules should remain flexible around prayer.

Visiting Respectfully

As with any active mosque: dress modestly, remove shoes where required, speak quietly, keep phones silent, avoid walking immediately in front of someone praying, and follow instructions from mosque staff. Women should carry a scarf in case head covering is requested. A local guide can clarify arrangements on arrival.

Photography Etiquette

Exterior photography is straightforward. Inside: avoid photographing worshippers without permission, do not use intrusive flash, follow posted rules, and put religious activity before photography. If prayer is taking place, allow the mosque to function as a place of worship — there will always be another photograph.

Is There an Entrance Fee?

Shamakhi Juma Mosque is an active religious site rather than a conventional ticketed museum attraction. It's promoted as a visitor landmark but does not present a fixed museum admission tariff. Avoid publishing an assumed permanent ticket price — current access can simply be checked locally.

Opening Hours

The mosque does not need to be treated like a museum with a rigid sightseeing timetable. Access may be affected by prayer, religious events, Friday worship and maintenance. The most important rule: visit outside major prayer periods whenever possible. There's no reason to embed an evergreen fixed timetable if official tourism does not maintain one.

How Long Do You Need?

15 minutes is enough for an exterior photograph and brief interior look, but too rushed for proper context. 30 minutes is recommended for most travelers, allowing historical explanation, exterior, interior and courtyard. 45 minutes suits visitors particularly interested in architecture, religion, or Shirvan history. For most itineraries, approximately 30–40 minutes is sufficient.

Best Time of Day

Morning is excellent — the mosque is generally quieter and it works naturally when leaving Baku toward Lahij or Gabala. Midday is possible, but pay attention to prayer times. Late afternoon offers attractive light for exterior photography, with the stone taking on warmer tones. Friday requires additional sensitivity because of congregational prayer.

Best Time of Year

The mosque can be visited throughout the year. March to May is excellent for combining with Shamakhi sightseeing and countryside. June to August is good, although midday temperatures can be warm. September to October is one of the strongest periods, excellent for Shamakhi, Lahij and the wider Mountainous Shirvan area. November to February is still worthwhile, with weather becoming less relevant here than at mountain attractions, though snow or poor road conditions can affect broader regional itineraries.

Accessibility

The current reconstructed complex is considerably easier to navigate than many medieval archaeological sites. However, visitors may still encounter entrance thresholds, steps, and shoe-removal requirements. Travelers with specific mobility needs should have current access arrangements checked before visiting. The mosque grounds themselves provide good exterior views even for guests who do not enter every area.

Is the Mosque Suitable for Children?

Yes. For families, keep the interpretation straightforward: a very old mosque site, earthquakes, rebuilding, three prayer halls, a living place of worship. Children should be reminded to remain quiet inside. A 20–30 minute visit is generally sufficient for younger travelers.

Is Shamakhi Juma Mosque UNESCO-Listed?

No. Shamakhi Juma Mosque is not currently a UNESCO World Heritage Site. This should not be confused with UNESCO properties elsewhere in Azerbaijan such as the Walled City of Baku, the Gobustan Rock Art Cultural Landscape, the Historic Centre of Sheki, or the Khinalig cultural landscape. The mosque's importance comes from its early foundation tradition, religious significance, architecture and role in Shamakhi's history, rather than UNESCO designation.

Juma Mosque and Shamakhi

The mosque should be understood as part of the wider city. Shamakhi was historically known for Shirvanshah political history, poetry, religion, trade, and repeated earthquakes — described as an ancient capital and important cultural center. The mosque is the best surviving landmark through which to introduce that history.

Combine With Yeddi Gumbez

One of the best historical combinations in Shamakhi is Juma Mosque → Yeddi Gumbez. Yeddi Gumbez contains mausoleums associated with the final rulers of the Shamakhi khanate. Together they present two different historical layers: the Juma Mosque covers early Islamic tradition and Shirvan's religious history, while Yeddi Gumbez covers later khanate-era funerary heritage. This works well before continuing toward Lahij.

Combine With Diri Baba Mausoleum

Travelers arriving from Baku can stop first at Diri Baba Mausoleum near Maraza. The monument dates to 1402 and is dramatically built into a rocky cliff. A strong route: Baku → Diri Baba → Shamakhi Juma Mosque → Yeddi Gumbez → Lahij, providing a logical introduction to the religious and architectural heritage of Mountainous Shirvan.

Combine With Lahij

Shamakhi and Lahij are an excellent pairing. Shamakhi is best for religious heritage, Shirvan history, the Juma Mosque, and mausoleums. Lahij is best for copper craftsmanship, Tat culture, mountain village atmosphere, and food. Together they offer far more variety than a Baku–Lahij transfer without stops.

Combine With a Shamakhi Winery

The wider Shamakhi region has become one of Azerbaijan's important modern wine areas. For suitable clients, a day can combine historic Shamakhi, the Juma Mosque, countryside, and a wine experience before overnighting locally or continuing west — particularly good for private tours where the itinerary doesn't need to be fully fixed.

Continue Toward Gabala

A classic westbound itinerary: Baku → Diri Baba → Shamakhi → Lahij → Gabala, or, depending on time, Baku → Shamakhi → winery → Gabala. Shamakhi Juma Mosque is a natural first major cultural stop after leaving Baku.

Continue Toward Sheki

For a longer Azerbaijan journey, the route continues logically: Baku → Shamakhi → Lahij → Gabala → Sheki. The cultural progression is particularly strong: early Islamic heritage, mountain craftsmanship, Greater Caucasus nature, and Silk Road city. For first-time Azerbaijan travelers, this remains one of the strongest overland routes.

Shamakhi Juma Mosque and Baku's Shirvanshahs' Palace

These attractions belong to the same broader historical story. Shamakhi was an earlier center of Shirvan and Shirvanshah political life. Baku later became increasingly important and contains the great 15th-century palace complex. Connecting them helps travelers understand why the dynasty appears repeatedly across an Azerbaijan itinerary.

Do Not Present the Current Building as 8th Century

This is the most important accuracy point for the page. Avoid: "This mosque was built in 743 and has stood unchanged ever since." That is inaccurate.

Instead use: "The first mosque on this site is traditionally dated to 743 AD. Repeated earthquakes, conflict and reconstruction transformed the building over the centuries, with the present mosque reflecting a major reconstruction completed in 2013." This preserves the historical importance without misleading visitors.

Do Not Rush the Visit

The mosque frequently appears as a short stop on longer tours from Baku. That's understandable, but visitors should still receive enough context to understand why it matters. A good visit needs only: 5 minutes outside explanation, 10–15 minutes inside, a short courtyard walk. There's no need for an hour-long lecture — the history is strongest when told clearly.

Is Shamakhi Juma Mosque Worth Visiting?

Yes. It is one of the most important cultural stops between Baku and the mountain regions of Azerbaijan. Its importance comes from the combination of early Islamic history, Shirvan, unusual mosque architecture, earthquakes, centuries of rebuilding, and continuing religious life.

The building visible today may be substantially reconstructed, but that does not reduce its historical importance — in fact, repeated rebuilding is part of the story. Shamakhi itself has repeatedly been damaged, rebuilt, damaged again, and renewed. The Juma Mosque embodies that resilience better than any other monument in the city.

Caucasus Travel FAQ

Traditionally founded in 743 AD, making it Azerbaijan's oldest mosque — though the visible building reflects a major 2013 reconstruction following centuries of earthquake damage and rebuilding.

It's regarded as the second-oldest, after the Juma Mosque of Derbent, and the oldest in Azerbaijan specifically.

An interconnected three-part prayer hall, each traditionally with its own entrance and mihrab — a distinctive layout that survived successive rebuilding campaigns.

Shamakhi sits in a highly active seismic zone and has been struck by damaging earthquakes across many centuries, along with periods of conflict, most recently requiring a major reconstruction completed in 2013.

Yes, outside prayer times — it remains an active place of worship, so visitors should dress modestly, remove shoes where required, and be especially mindful around Friday congregational prayer.

No — its significance comes from its ancient foundation tradition and religious history rather than UNESCO designation.

Architect Gasim bey Hajibababayov after 1859, and Zivar bey Ahmadbeyov followed by Polish architect Józef Płoszko after 1902 — part of a long line of restorations continuing into the 2010–2013 reconstruction.

30–40 minutes is usually enough for most travelers to properly understand its history and architecture.

Yeddi Gumbez (khanate-era mausoleums), Diri Baba Mausoleum near Maraza, and onward travel toward Lahij, Gabala or Sheki.

It's not operated as a conventional ticketed museum — check current local access rather than expecting a fixed admission price.

Back to top