Viajá con Gus
Home › Azerbaijan › Shamakhi
Shamakhi
🇦🇿 Azerbaijan · The centre: Ganja, Shamakhi and Naftalan

Shamakhi

🪪 What do I need to enter Azerbaijan?Pick your citizenship and we tell you the visa, the days and the paperwork, with the official source.

By leaving your email and citizenship you agree to receive the documents you asked for and weekly travel news. You can unsubscribe whenever you want. How we handle your data.
Jump to what you need
📍Region
Shamakhi (Şamaxı) is a historic town in east-central Azerbaijan, about 120 km west of Baku, in the foothills of the Greater Caucasus and surrounded by vineyards. For centuries it was the capital of the kingdom of Shirvan, one of the most important states of the medieval Caucasus, and one of the richest cities on the Silk Road. Today it is a quiet town in the lower mountains, known for its Juma Mosque (one of the oldest in the Caucasus, from 743), for the seven-domed Yeddi Gumbez mausoleum, for its winemaking tradition and as a gateway to the astronomical observatory and the landscapes of the country's interior. It makes an excellent day trip from Baku.
📌Best time to go
Spring (April-June) and autumn (September-October) are the best times: pleasant weather, green or golden vineyards and good light on the mountains. Summer (July-August) is cooler than Baku thanks to the altitude (Shamakhi sits at about 700-800 m), pleasant by day and cool at night, ideal for escaping the heat of the coast; the grape harvest comes at the end of summer. Winter (December-February) is cold and sometimes snowy, with the town very quiet; it can be combined with a snow getaway. For wine and scenery, aim for autumn.
📌Suggested days
Shamakhi works very well as a 1-day visit from Baku: enough time for the Juma Mosque, the Yeddi Gumbez mausoleum, a winery and, if the weather cooperates, the Pirgulu observatory. With one night (2 days) you can take it more slowly, add wine tastings, the Diri Baba mausoleum in nearby Maraza and the mountain scenery, and link up with other destinations in the interior such as Lahij or Gabala. Many day tours from Baku combine Shamakhi with Gobustan or with the mountains of the north.
📌Getting there
Shamakhi is about 120 km from Baku, 2 to 2.5 hours by road. Buses and minibuses (marshrutkas) leave Baku International Bus Station for Shamakhi regularly and cheaply (around 3-5 AZN). You can also get there by taxi, by rental car or, most comfortably, on an organised day trip. There is no train. The road crosses steppe and mountain scenery, and on the way you can stop at the Diri Baba mausoleum in Maraza. It is one of the classic getaways from the capital.
📌Getting around
The centre of Shamakhi is small and easy to explore on foot: the Juma Mosque and the old part of town are close together. The Yeddi Gumbez mausoleum sits on a hill on the outskirts, a short taxi ride away (10-15 minutes), and the wineries and the Pirgulu observatory are scattered around the surrounding area, several kilometres away. So to make the most of the area, it's best to have your own car, a taxi that waits for you, or to go on a tour with transport. There are taxis in town; the Bolt app doesn't always cover small towns well, so agree the price with the driver.
📌Language and currency
Azerbaijani is spoken; Russian is widely understood among adults, and English is little used outside guides and hotels. The currency is the Azerbaijani manat (AZN, ₼). As of July 2026, 1 USD is around 1,70 AZN (an essentially fixed rate since 2017) and 1 EUR about 1,90-1,97 AZN (approximate). There are ATMs in town and cards are accepted at hotels and wineries, but it's worth carrying cash for taxis, markets and small places, and for the mausoleum or the observatory.
💱 AZN exchange rate
Loading rate…
🌤️ Weather in Shamakhi
Loading weather…

Shamakhi is one of those towns whose quiet present hides a glorious past. Surrounded by vineyards on the slopes of the Greater Caucasus, a couple of hours from Baku, for almost a thousand years it was the capital of the kingdom of Shirvan, one of the most powerful and refined states of the medieval Caucasus, and one of the richest cities on the entire Silk Road. Poets, merchants and ambassadors passed through, and its name was known in Baghdad, Tabriz and Venice. Earthquakes and invasions struck it again and again, but Shamakhi always rose back up.

Today, gems from that splendour remain and are well worth seeking out: the Juma Mosque, from 743, one of the oldest in the Caucasus, rebuilt after every earthquake; the Seven Domes mausoleum, Yeddi Gumbez, where the last khans of Shamakhi rest, its domes outlined against the sky; and, nearby, the enigmatic Diri Baba mausoleum, set into a cliff face. Add to that the region's winemaking tradition, with wineries you can visit, and the Pirgulu astronomical observatory up in the mountains.

This guide helps you plan your visit: what to see in the town and around it, how to get there from Baku, what things cost, where to taste Shirvan wine and how to combine Shamakhi with other destinations in the interior. It's a perfect trip from the capital for anyone who wants history, wine and mountains, and to discover the heart of old Shirvan.

📖 History of Shamakhi

For centuries Shamakhi was the capital of the kingdom (or khanate) of Shirvan, a state that dominated the eastern Caucasus from the Middle Ages, ruled by the Shirvanshah dynasty. Its position on the Silk Road made it rich and famous: merchants and poets frequented it, and its Juma Mosque, from 743, is among the oldest in the Caucasus. The town suffered devastating earthquakes and conquests by Persians, Ottomans and Russians, which destroyed and rebuilt it again and again; the capital of Shirvan was even moved to Baku because of the earthquakes. In the 18th century it was the centre of the Shamakhi Khanate, whose last khans rest in the Yeddi Gumbez mausoleum, and in the 19th it passed to the Russian Empire. Earthquakes such as those of 1859 and 1902 flattened it once more. This story of splendour, earthquakes and rebirths of old Shirvan is told on our history page.

Read the full history ↓

🏛️ Shamakhi is in the centre: Ganja, Shamakhi and Naftalan

Azerbaijan's historic heartland: Ganja, city of the poet Nizami; Shamakhi, capital of the old kingdom of Shirvan, with one of the oldest mosques in the Caucasus; and unusual Naftalan, where the signature treatment is a bath in crude oil.

Read the history of The centre: Ganja, Shamakhi and Naftalan →

🗺️ What to see

Tours nearby, in Baku

A local guide tells you in half an hour what no sign at the site will ever explain. We look ours up on Civitatis: guided in Spanish and booked online with no fuss. They have 9 activities in Baku. And there are free tours here: you book without paying and tip the guide whatever you think at the end, so trying one costs you nothing. Have a look below: tap any of them to see them all.

They depart from Baku, 109 km away. If you book from this link we earn a commission and you pay no more.

1
Juma Mosque of Shamakhi
One of the oldest mosques in the Caucasus, founded in 743, rebuilt after every earthquake and now imposing in its restored form.
Leer más ↓
The Juma Mosque (Cümə məscidi) of Shamakhi is the town's great monument and one of the oldest mosques in the whole Caucasus: it was founded in 743-744, shortly after the one in nearby Derbent, in the days of the Arab Caliphate. Its layout is unusual, with a large prayer hall divided into three separate sections, each with its own mihrab, an arrangement unmatched anywhere else in Azerbaijan. Over almost thirteen hundred years, the mosque was destroyed and rebuilt many times, above all by the earthquakes that strike the region (the most recent being the great quake of 1902) and by wars. The version you see today is a monumental restoration completed in the last decade, which gave the building back its grandeur, with its great dome, its two minarets and its courtyard, while respecting its age. Within the grounds there are tombs and a small historic cemetery. It is a solemn place and deeply meaningful to Azerbaijanis, a testament to the historical depth of Islam in the region. Visit respectfully and dress modestly. It's in the town centre, within walking distance, and is the essential stop on any visit to Shamakhi.
ℹ️ Distance: In the centre of Shamakhi; reachable on foot · Best time to go: All year; avoid prayer times for sightseeing · Admission: Free (donation); modest dress, remove your shoes (verified July 2026) · Duration: 30 min to 1 hour
2
Yeddi Gumbez Mausoleum (Seven Domes)
The burial complex of the last khans of Shamakhi, with faceted domes on a hill on the outskirts overlooking the town.
Leer más ↓
The Yeddi Gumbez mausoleum ('the seven domes') is one of Shamakhi's most evocative spots: a group of mausoleums on a hill on the outskirts, where the last khans of Shamakhi and their families lie, rulers of the region in the late 18th and early 19th centuries. They are built in the characteristic Shirvan-Absheron style, with cylindrical drums topped by faceted brick domes. The name refers to the original seven domes, but the region's devastating earthquakes (especially the one in 1902) brought several down, and today only a few remain standing, some in ruins, which gives the place a romantic, melancholy air. From the hill there's a lovely view over Shamakhi and the surrounding mountains, especially beautiful at sunset. It's a short taxi ride from the centre (10-15 minutes) and is usually combined with the Juma Mosque on the same visit. It's a quiet, free and very photogenic spot, ideal for understanding the khanate's past and enjoying the scenery. Local drivers know the way well.
ℹ️ Distance: On a hill on the outskirts; 10-15 min by taxi from the centre · Best time to go: Sunset, for the light and the views; all year · Admission: Free (verified July 2026) · Duration: 30 to 45 minutes
3
Diri Baba Mausoleum (Maraza)
A two-storey mausoleum set into a cliff face, one of the most surprising monuments in the country, on the way to Shamakhi.
Leer más ↓
On the way to Shamakhi from Baku, in the village of Maraza (Qobustan), stands one of the most astonishing monuments in Azerbaijan: the Diri Baba mausoleum. It is a two-storey 15th-century building, literally set into the face of a rocky cliff, so it seems to emerge from the mountain. Its impossible location and elegant architecture make it a must-stop. According to tradition, a local saint, Diri Baba ('the living grandfather'), is buried here, and his body is said to have remained incorrupt, giving rise to legends and pilgrimages. You can climb stairs and galleries cut into the rock up to the top, with views over the valley, and explore the small rooms inside. It's a place full of mystery and very photogenic. As it lies right on the Baku-Shamakhi road, it's easy to combine with a visit to the town, whether independently or on a tour. The stop is short but highly recommended. It adds a touch of legend and architectural wonder to the trip through old Shirvan.
ℹ️ Distance: In Maraza, about 20-25 km before Shamakhi coming from Baku · Best time to go: All year; in good light for photos · Admission: Free or a token fee ~2 AZN (verified July 2026) · Duration: 30 to 45 minutes
4
The wineries and wine of Shirvan
Shamakhi is Azerbaijan's largest winemaking centre; its wineries offer tours and tastings among mountain vineyards.
Leer más ↓
The Shamakhi region is Azerbaijan's main winegrowing centre, with a centuries-old winemaking tradition helped by the mountain climate and the soils of the Caucasus foothills. Shamakhi wines have won international awards, and today several modern wineries offer guided tours of their vineyards and cellars, with tastings of red, white and sparkling wines, in a very pleasant setting of hills and vines. One of the best known is Meysari, a large, modern winery with tours, a restaurant and even accommodation among the vineyards, but there are other options in the area. The tastings let you discover local and international varieties grown at altitude, paired with Azerbaijani food. It's a highly recommended outing for wine lovers and a different way to enjoy the landscape. As the wineries are scattered around the area, several kilometres from town, it's best to go by car, taxi or tour, and to book your visit in advance. It fits beautifully with the rest of the trip: monuments in the morning, wine and scenery in the afternoon.
ℹ️ Distance: Wineries spread around the area (5-20 km); car or tour · Best time to go: Late summer (harvest) and autumn; spring for the greenery · Admission: Tasting/tour from ~20-50 AZN per person depending on the winery; book ahead (verified July 2026) · Duration: 1,5 to 2 hours
5
Shamakhi Astrophysical Observatory (Pirgulu)
The country's main astronomical observatory, in the wooded mountains near the town, with tours and clear skies.
Leer más ↓
In the wooded mountains near Shamakhi, in the Pirgulu area, stands the Shamakhi Astrophysical Observatory, Azerbaijan's main astronomical observation centre, founded in Soviet times (the 1960s). Its large telescope, one of the biggest in the region, takes advantage of the altitude and clear skies, far from the light pollution of the cities. The observatory offers guided tours covering its history, its facilities and its huge dome, and sometimes stargazing sessions. It is surrounded by forest and fine mountain scenery, and the drive up is lovely in itself, among pines and fresh air. It's an interesting and somewhat different stop, especially for travellers with a scientific streak or with kids. It lies a few kilometres from town along a mountain road, so it's best to go by car or include it in a tour, and check visiting hours beforehand, as they can vary. It combines well with the rest of a day around Shamakhi and its vineyards.
ℹ️ Distance: In Pirgulu, ~20 km from Shamakhi, by mountain road · Best time to go: Spring to autumn; check visiting hours · Admission: Guided tour with a fee; best to check and book (verified July 2026) · Duration: 1 to 1,5 hours
6
The old town and the bazaar
The quiet streets of the historic centre, with old houses, the bazaar and the feel of a provincial town of old Shirvan.
Leer más ↓
Beyond its monuments, Shamakhi keeps the charm of a Caucasus provincial town, with its old quarter of quiet streets, old one- and two-storey houses, and the bazaar where locals sell fruit, vegetables, nuts, honey and regional produce. It's a good place to stroll unhurriedly, pick up something for the road and feel the pulse of local life, far from the bustle of Baku. The town has been flattened by earthquakes so many times that very few old buildings are still standing, but the street layout and atmosphere keep the feel of the old capital of Shirvan. Around the Juma Mosque and the centre you can enjoy that unhurried atmosphere, with tea houses where you can have tea with sweets and chat with people. It's also the chance to try the local food and produce: the region's orchards and vineyards yield excellent fruit, and the area is known for its pastries and sweets. Wandering the old town and the bazaar is the way to round off your visit with the human, everyday side of Shamakhi.
ℹ️ Distance: In the centre; explored on foot · Best time to go: Mornings for the bazaar; all year · Admission: Free (verified July 2026) · Duration: 1 hour
📶I have never landed without internet. I arrive and my phone connects to the strongest network in the country I am visiting: I can say I landed, sort out transport, book tours and keep posting, at a seriously good price. I always use the Maya eSIM — check their plans by clicking the banner.See plans →Maya Mobile eSIM — connect before you land
What nobody tells you

💵 Prices

Tickets

TypePrice
Mezquita Juma, Yeddi Gumbez, casco viejo, bazarFree to explore, 2026
Mausoleo de Diri Baba (Maraza)Free or token fee ~2 AZN, 2026
Cata y visita en bodega (Meysari, etc.)From ~20-50 AZN per person; book ahead, 2026
Observatorio de Pirgulu (visita guiada)Fee on request; book ahead, 2026
Taxi con espera para los alrededores~30-70 AZN per half day depending on route, 2026
🔄 updated monthlyOfficial / reference values · double-check when buying

Activities and tours

ActivityPriceDurationOperator
Full-day trip from Baku (Diri Baba + Shamakhi)From ~60-140 AZN per person on a shared tour, 2026Full dayBaku agencies
Shamakhi winery tour and tastingFrom ~20-50 AZN per person, 20261,5 to 2 hRegional wineries (Meysari, etc.)
Visit to the Pirgulu observatoryFee on request, 20261 to 1,5 hShamakhi Astrophysical Observatory
Taxi with waiting around town and the surrounding area~30-70 AZN per half day, 2026Half dayLocal taxi drivers
Shamakhi + Lahij or Gabala comboDepending on tour/distance, 2026Full day or 2 daysAgencies in the region and in Baku
🔄 updated monthlyOfficial / reference values · double-check when buying

🚌 How to get there and distances

Getting around

On foot around the centre
Free
DurationVariable
Notes
Shamakhi's old town, with the Juma Mosque and the bazaar, is easy to explore on foot. A small, quiet town
Local taxi with waiting
Price~30-70 AZN per half day depending on route, 2026
DurationVariable
Notes
The most practical option for Yeddi Gumbez, the wineries and the observatory, which are scattered around the area. Agree the price in advance; Bolt doesn't always cover small towns
Rental car
From ~50-90 AZN/day in Baku, 2026
DurationVariable
Notes
The most convenient way to explore Shamakhi and the surrounding district, and to stop at Diri Baba on the way. Good roads, with some mountain driving towards the observatory
Marshrutka to/from Baku
~3-5 AZN, 2026
Duration~2-2,5 h
Notes
Regular, cheap minibuses between Baku International Bus Station and Shamakhi. To get around the district you'll need a taxi or a car
🔄 updated monthlyOfficial / reference values · double-check when buying

How to get there

RouteAirlines / operatorsAvg. priceDuration
Baku → Shamakhi by minibusMarshrutkas from Baku International Bus Station~3-5 AZN, 2026~2-2,5 h (120 km)
Baku → Shamakhi by tour/carAgencies, private taxi, rental carTour from ~60-140 AZN per person; private taxi costs more, 2026~2 h (stopping at Diri Baba)
Shamakhi → Gabala / Lahij (centre and northwest)Minibus + taxi or your own carDepends on destination, 2026Gabala ~1,5-2 h
🔄 updated monthlyOfficial / reference values · double-check when buying

🏨 Where to stay

No exact prices: a scale from $ (budget) to $$$$$ (luxury), with 2-3 options per category.

Resorts and mountain hotels
Price$$$$$
Recommended options
~200-500 AZN per night (≈ 120-295 USD), 2026. The district has upmarket mountain resorts, such as the complexes around Pirgulu and wineries with accommodation (e.g. hotels among the vineyards), with spas and great views, ideal for a weekend break from Baku
Mid-range hotels and complexes
Price$$$$$
Recommended options
~90-220 AZN per night (≈ 55-130 USD), 2026. Comfortable hotels in Shamakhi and the surrounding area, some with a pool and restaurant, a good base for exploring the area at a slower pace
Guesthouses and simple hotels
Price$$$$$
Recommended options
~50-120 AZN per night (≈ 30-70 USD), 2026. Budget guesthouses and family-run hotels in town, for anyone spending the night before heading on to the centre or the northwest

🍴 Where to eat

Cocina azerbaiyana de montaña
Price$$$$$
Options / signature dish
Main courses ~8-25 AZN (≈ 5-15 USD), 2026. Local restaurants serving kebabs, saj, lamb stews, dolma and regional dishes, often with terraces overlooking the vineyards and mountains. Good food at a good price
Bodegas con restaurante
Price$$$$$
Options / signature dish
Set menus with wine ~30-80 AZN (≈ 18-47 USD), 2026. The region's wineries (such as Meysari) offer lunches and dinners paired with their own wines, right among the vineyards, a food experience well worth it
Casas de té y dulces locales
Price$$$$$
Options / signature dish
Tea and sweets ~2-8 AZN (≈ 1-5 USD), 2026. The çayxana teahouses serve tea with jams, nuts and the region's traditional pastries, which are delicious; there are also fruit stalls and local produce at the bazaar

📖 History of Shamakhi

Origins, formation and what the sources say.

The forgotten capital of a powerful kingdom

It's hard to picture today, strolling through its quiet streets among the vineyards, but for almost a thousand years Shamakhi was one of the most important cities in the Caucasus: the capital of the kingdom of Shirvan, a state that dominated the east of the region from the early Middle Ages and whose name was known at the courts of Baghdad, Tabriz and even Venice. Merchants, poets, ambassadors and pilgrims passed through, drawn by its wealth and its position on the Silk Road.

Shamakhi's secret was its location: on the slopes of the Greater Caucasus, at the crossroads of the routes linking the Persian and Mediterranean worlds with Central Asia and the northern steppes. That position made it rich in silk, textiles and trade, but it also turned it into a coveted prize and a constant target for invasions. On top of that came a geological curse: Shamakhi sits in one of the most seismically active zones in the country, and earthquakes destroyed it again and again over the centuries.

The story of Shamakhi is, therefore, a story of splendour and resilience: a city that was great, that was flattened dozens of times by earthquakes and armies, and that always rose again. Its surviving monuments (the old mosque, the mausoleums) bear witness to that long memory of old Shirvan.

The Arabs and one of the oldest mosques in the Caucasus

The Shamakhi area has been inhabited since very ancient times, and in Antiquity it was already part of Caucasian Albania, the Christian kingdom of the eastern Caucasus (unrelated to Balkan Albania). But the founding moment of historic Shamakhi came with the Arab conquest and the spread of Islam in the 8th century. It was then, in 743-744, that the Juma Mosque of Shamakhi was built, one of the oldest in the whole Caucasus, second only to the one in neighbouring Derbent.

That mosque, with its unusual layout of three prayer halls, is the city's oldest material testimony and a symbol of the early arrival of Islam in the region. Over the centuries it would be destroyed and rebuilt many times (by earthquakes, fires and wars), but always on the same sacred site, so the current mosque, the result of a major recent restoration, has its roots in that 8th-century building.

Under the rule of the caliphates and the Muslim dynasties that followed, Shamakhi grew as an urban, commercial and religious centre. Little by little it took shape as the capital of a political entity of its own, Shirvan, ruled by a local dynasty that would go down in history under the title of Shirvanshahs, 'the kings of Shirvan'.

The splendour of the Shirvanshahs

During the Middle Ages, Shamakhi was the capital of the kingdom of Shirvan, ruled by the Shirvanshah dynasty, one of the longest-lasting in the Islamic world: with ups and downs, its rulers governed the region for centuries. Under their rule, Shirvan was a prosperous and cultured state that managed to keep a degree of autonomy from the great neighbouring empires through diplomacy, alliances and, when necessary, force of arms.

Shamakhi then reached its peak. It was a city rich in silk (the region was famous for its textiles), with bazaars, caravanserais, mosques and a cosmopolitan atmosphere fed by Silk Road trade. The Shirvanshahs' court attracted poets and scholars; the most famous poet linked to the city was Khaqani, a great figure of 12th-century Persian poetry. Culture, trade and political power went hand in hand in the capital of Shirvan.

Over time, however, Shamakhi itself proved vulnerable to earthquakes, and at various points the Shirvanshahs moved their residence to the safer city of Baku, where they built the famous Palace of the Shirvanshahs, now a UNESCO World Heritage Site. Even so, Shamakhi remained the economic and symbolic heart of the kingdom, the city that gave its name and meaning to all of Shirvan.

Between Persians, Ottomans and Russians

From the 16th century onwards, the kingdom of Shirvan lost its independence and was caught in the long struggle between the region's two great empires: Safavid (Shia) Persia and the (Sunni) Ottoman Empire. Shamakhi changed hands several times, and with each conquest it suffered looting and massacres. The city, which at its height had been one of the most populous in the Caucasus, entered a period of instability and decline.

One of the hardest blows came in 1721, when the city was stormed and sacked amid the upheavals shaking Persia; that episode, in which the foreign merchants in the city suffered too, even had international diplomatic repercussions. In the 18th century, as central Persian power crumbled, the Shamakhi Khanate emerged, a small local state ruled by its own khans, whose mausoleums (the Yeddi Gumbez, 'the seven domes') still crown a hill on the outskirts.

At the start of the 19th century, the Russian Empire annexed the eastern Caucasus after its wars with Persia, and Shamakhi passed into the tsars' domain under the treaties of Gulistan (1813) and Turkmenchay (1828). Under Russian administration, the city was for a time a provincial capital, but its history was still shaped by the constant threat of the ground trembling beneath its feet.

The city the earth knocked down again and again

No history of Shamakhi is complete without its earthquakes. The city sits on one of the most seismically active zones in Azerbaijan, and over the centuries it was destroyed by devastating quakes on many occasions. Each time, much of the city was left in ruins, with thousands dead, and each time the survivors rebuilt it on top of the rubble.

In the 19th century, two major earthquakes sealed its fate. The 1859 quake was so destructive that the Russian authorities decided to move the provincial capital to Baku, a blow from which Shamakhi never recovered as a political centre. And the 1902 quake flattened the city once more, bringing down the Juma Mosque again along with many of its buildings. That's why very few truly old buildings are still standing today: almost everything you see is reconstruction on top of reconstruction.

This relationship with earthquakes explains how Shamakhi looks today (a city with a fairly modern feel despite being thousands of years old) and also its character. The ruined mausoleums of Yeddi Gumbez, with only some of their domes still standing, are the most telling image of that struggle between human work and the force of the earth. Shamakhi is, quite literally, a city rebuilt on its own memory.

Shamakhi today: wine, history and mountains

In Soviet times, Shamakhi was a quiet provincial town, with its farming, its vineyards and, from the 1960s, the large Astrophysical Observatory built in the nearby mountains at Pirgulu, which takes advantage of the area's clear skies. With Azerbaijan's independence in 1991, the city kept that calm profile, far from Baku's oil-fuelled frenzy, relying on agriculture and, increasingly, on tourism.

Today, Shamakhi has reinvented itself as a destination for history, wine and nature. The monumental restoration of the Juma Mosque gave the city back its oldest jewel; the Yeddi Gumbez mausoleum and the nearby, spectacular Diri Baba draw visitors; and the winemaking tradition, the most important in the country, is thriving again with modern wineries offering tours and tastings among the mountain vineyards. Its altitude also makes it a cool refuge from the heat of the coast.

For travellers, Shamakhi is one of the best day trips from Baku: in a single day you can touch the thousand-year history of old Shirvan, taste the wine from its hills and breathe the air of the Caucasus foothills. Behind its provincial calm beats the memory of a capital that was once great, that the earth knocked down dozens of times and that, stubbornly, always rose again. Few cities tell the long and turbulent story of Azerbaijan so well.

📚 Bibliography

  • Wikipedia (EN) — «Shamakhi» — https://en.wikipedia.org/wiki/Shamakhi
  • Wikipedia (EN) — «Shirvan» — https://en.wikipedia.org/wiki/Shirvan
  • Wikipedia (EN) — «Shirvanshah» — https://en.wikipedia.org/wiki/Shirvanshah
  • Wikipedia (EN) — «Juma Mosque, Shamakhi» — https://en.wikipedia.org/wiki/Juma_Mosque,_Shamakhi
  • Wikipedia (EN) — «Shamakhi Khanate» — https://en.wikipedia.org/wiki/Shamakhi_Khanate
  • Wikipedia (EN) — «Diri Baba Mausoleum» — https://en.wikipedia.org/wiki/Diri_Baba_Mausoleum
  • Wikipedia (EN) — «Khaqani» — https://en.wikipedia.org/wiki/Khaqani
  • Wikipedia (EN) — «Shamakhi Astrophysical Observatory» — https://en.wikipedia.org/wiki/Shamakhi_Astrophysical_Observatory
  • Advantour — «Shamakhi» — https://www.advantour.com/azerbaijan/shamakhi.htm
  • Encyclopaedia Britannica — «Shamakhy» — https://www.britannica.com/place/Shamakhy

❓ Frequently asked questions

How do I get to Shamakhi from Baku?+
Shamakhi is about 120 km from Baku, 2 to 2.5 hours by road. The cheapest option is the minibuses (marshrutkas) that leave Baku International Bus Station regularly, for about 3-5 AZN. You can also go by taxi or rental car or, most comfortably, on an organised day trip, which usually includes the spectacular Diri Baba Mausoleum on the way. There is no train to Shamakhi. The road is good and runs through steppe and mountain scenery.
Can you visit Shamakhi as a day trip from Baku?+
Yes, it's one of the classic day trips from the capital. In one day you can see the Juma Mosque (one of the oldest in the Caucasus), the Yeddi Gumbez mausoleum, the Diri Baba Mausoleum on the way, and a winery with a tasting. If time allows, you can add the Pirgulu observatory. To take it more slowly, or to continue on to Gabala or Lahij, it's worth staying a night. Many tours combine Shamakhi with Gobustan or with the mountains of the north.
Why is the Juma Mosque in Shamakhi so important?+
Because it's one of the oldest mosques in the whole Caucasus: it was founded in 743-744, in the time of the Arab Caliphate, and only the one in neighbouring Derbent is older. Its layout, with three separate prayer halls each with its own mihrab, is unique in Azerbaijan. Over almost thirteen centuries it was destroyed and rebuilt many times by earthquakes and wars; the current building is the result of a major recent restoration that brought back its grandeur. It's a testament to the deep history of Islam in the region and the town's main monument.
Are the wineries in Shamakhi worth visiting?+
If you like wine, definitely. Shamakhi is Azerbaijan's main wine-growing centre, with high-altitude vineyards and a centuries-old tradition. Several modern wineries, such as Meysari, offer guided tours and tastings of red, white and sparkling wines, some with a restaurant and accommodation among the vines. It's a different way to enjoy the mountain landscape and the local food. The wineries are spread around the surrounding area, so it's best to go by car or on a tour and book your visit in advance. The grape harvest, at the end of summer, is a special time.
When is the best time to visit Shamakhi?+
Spring (April-June) and autumn (September-October) are ideal: good weather, green or golden vineyards and good light for the mountains and mausoleums. Summer is cooler than in Baku thanks to the altitude, a pleasant escape from the heat of the coast, and the grape harvest comes at the end of summer. Winter is cold and sometimes snowy, and the town is very quiet. If you're interested in wine and scenery, aim for autumn; if you want to escape the heat of the capital, a mountain summer in Shamakhi is a good option.
What other places can I combine with Shamakhi?+
Shamakhi is in the centre of the country and combines well with several destinations. On the way from Baku is the Diri Baba Mausoleum, in Maraza. To the northwest, a couple of hours away, are Gabala (mountains, Lake Nohur, skiing at Tufandag) and the lovely coppersmiths' village of Lahij. And along the central route you reach Ganja and Naftalan (the oil baths). With a car or a combination of tours you can put together a very complete circuit of central Azerbaijan starting from Shamakhi.

More places in Azerbaijan

ShekiZaqatalaPenínsula de AbsheronAstaraBakúGabala
See every place in Azerbaijan →The history of Azerbaijan →
Sources consulted (12)
Still planning?
Explore more destinations in Azerbaijan
See all destinations →