Shamakhi: Wine & Old Shirvan

Shamakhi: Wine & Old Shirvan

Ancient mosques, cliff-side tombs and Azerbaijan's wine country

day-tripsshamakhiwineshirvanismayillilahijhistory

Quick answer: A Shamakhi day trip from Baku takes about 2 hours each way and fits easily into 6–8 hours. You see the Diri Baba Mausoleum carved into a cliff, the 8th-century Juma Mosque, the Seven Domes royal tombs and, if you like, a winery tasting. Putivnik arranges Shamakhi as a private day on request, or as part of its Shamakhi–Gabala–Sheki day tour (from €49).

If Gobustan is the classic half day from Baku, Shamakhi is the easy full day — no early alarm, no 14-hour drive, but a real change of scene. In two hours you leave the Caspian coast behind and arrive on a high, green plateau of vineyards and orchards, under the first ridges of the Caucasus.

For almost a thousand years Shamakhi was the capital of Shirvan, one of the great medieval states of the region. Earthquakes destroyed the town several times, and each time it was rebuilt. What remains is a quiet provincial town with a few extraordinary monuments, some of the best wine in the country, and a lot of fresh air.

Shamakhi at a glance

Distance from Baku ~120 km
Drive time ~2 hours each way
Day length 6–8 hours (Shamakhi only), 9–10 hours with Lahij
Main sights Diri Baba Mausoleum, Juma Mosque, Yeddi Gumbez (Seven Domes), wineries, Pirgulu observatory
Best months April–June, September–October (harvest)
Putivnik options Shamakhi private day — on request (WhatsApp); Shamakhi–Ismayilli–Gabala–Sheki day tour from €49

What to see in Shamakhi

Diri Baba Mausoleum

On the way, in the village of Maraza, a small two-storey mausoleum dated by an inscription to 1402 is built right into a vertical rock face. Legend says a holy man (the "living grandfather", Diri Baba) was buried here and his body never decayed. You climb a narrow inner staircase to the upper level, where a small window frames the valley. It is a 15–20 minute stop and one of the most photographed buildings in Azerbaijan.

Juma Mosque of Shamakhi

The Friday Mosque of Shamakhi was founded in the 8th century, which makes it one of the earliest mosques in the Caucasus. The building you see today was largely rebuilt after earthquakes and restored again in recent years. Inside, the long prayer hall with its carved stone, chandeliers and carpets is calm and bright. Visitors are welcome outside prayer times; dress modestly and remove your shoes.

Yeddi Gumbez (Seven Domes)

On a hill at the edge of town sits a cemetery with the domed mausoleums of the Shirvan khans, known as Yeddi Gumbez — Seven Domes. Only some of the domes still stand, but the hilltop setting with views over Shamakhi and the old gravestones carved with patterns and inscriptions is atmospheric, especially in late afternoon.

Shamakhi Astrophysical Observatory (Pirgulu)

In the forested mountains above Shamakhi, at Pirgulu, sits the country's main astronomical observatory, named after the medieval scholar Nasir al-Din al-Tusi. The drive up is beautiful, and the white domes in the forest are a surprising sight. Visits inside depend on the observatory's own schedule; ask us in advance and we will check what is possible.

Wineries and vineyards

Shamakhi and neighbouring Ismayilli are the heart of Azerbaijan's wine revival. Local grapes such as Madrasa (also called Matrassa) — named after a village near Shamakhi — make deep red wines; white wines are made from Bayan Shira and international varieties. Several estates offer cellar tours and tastings, often with lunch. Wine visits usually need to be booked in advance; we arrange them for private trips.

A sensible rule: if you plan to taste, do not drive. A private car with a driver, which we arrange, solves this.

Getting the most out of a winery visit

  • Book a time slot. Estates usually guide visitors through the vineyard, the production hall and the cellar, then sit you down for a tasting. Allow 1.5–2 hours.
  • Ask about local varieties. Taste at least one wine from an Azerbaijani grape such as Madrasa; it is the most interesting part of the visit.
  • Eat while you taste. Many wineries can serve lunch or a cheese and bread plate if you order ahead.
  • Shipping and flying home. Bottles are easy to buy on site. Check your airline's and your home country's allowances before you buy a case.
  • Non-drinkers are welcome. Grape juice, tea and the vineyard views are reason enough to come.

A short history of Shamakhi and Shirvan

To understand why a small town has such big monuments, you need a little history. From roughly the 9th to the 16th century, the Shirvanshahs ruled a state that stretched along the western Caspian coast. Shamakhi was their capital for most of that time, and later Baku took over the role — which is why the famous Palace of the Shirvanshahs stands in Baku's Old City, not here.

Shamakhi sat on the caravan routes between Persia, the Caucasus and Russia. Silk was its great trade: raw silk from the Shirvan region was exported far beyond the Caucasus, and merchants from many countries kept houses in the town. The wealth paid for mosques, bathhouses and caravanserais.

Earthquakes are the other half of the story. The town lies in an active seismic zone and was badly damaged many times; in the 19th century, after one especially destructive quake, the provincial capital was moved to Baku. Each rebuilding erased part of the old town, which is why Shamakhi today looks younger than its history — and why the monuments that survived, like the Juma Mosque and the mausoleums, matter so much to Azerbaijanis.

Shamakhi is also remembered in poetry and music. Several classical poets of the Shirvan school lived here, and the "Shamakhi dancers" appear in old travellers' accounts and in Russian literature. You will not see a museum about all of this on a quick visit, but knowing it makes the quiet streets more interesting.

Adding Lahij or Ismayilli

From Shamakhi it is about an hour further to the district of Ismayilli. Two good add-ons:

  • Lahij — a mountain village famous for its copper workshops, cobbled streets and stone houses. The final road climbs through a river gorge. It makes the day longer (9–10 hours), but it is the most atmospheric village within a day of Baku.
  • Wineries around Ismayilli — another cluster of estates with vineyards on the foothills.

If you want Gabala too, see our Gabala day trip guide: Gabala is about 1.5 hours beyond Shamakhi.

How to get to Shamakhi

Option Time Cost Notes
Private car with driver (Shamakhi ± Lahij or winery) 6–10 hours on request Flexible; best for wine tasting
Putivnik group tour: Shamakhi–Ismayilli–Gabala–Sheki 14 hours from €49 per person Book; Shamakhi is the first stop
Intercity bus/minibus from Baku ~2.5 hours a few manat Fine for the town centre; you need taxis for Diri Baba, wineries
Ride-hailing/taxi with waiting time 6–8 hours agree in advance Negotiate the full day upfront

For context, our November 2026 survey of local operators found group Gabala–Shamakhi tours at around €30 per person and private versions around €76 per person for two travellers. Private food and wine tours had a median of about €62 per person.

Sample itineraries

Classic Shamakhi day (private, about 7 hours)

Time Stop
09:00 Pickup in Baku
10:30 Diri Baba Mausoleum, Maraza
11:30 Shamakhi: Juma Mosque
12:30 Winery visit with tasting and lunch (booked in advance)
14:30 Yeddi Gumbez (Seven Domes)
15:15 Optional viewpoint drive towards Pirgulu
16:00 Return to Baku
18:00 Drop-off at your hotel

Shamakhi + Lahij (about 10 hours)

Start at 8:00, see Diri Baba and the Juma Mosque in the morning, continue to Lahij for lunch and a walk along the copper-makers' street, and return via Shamakhi's vineyards in the late afternoon.

Shamakhi as part of the big north-west loop

On our group day tour, Shamakhi is the first stop before Ismayilli, Gabala and Sheki. It is a fast way to see four regions in one day. If you prefer to slow down, our 5-day northern Azerbaijan itinerary spends a night in Gabala and two in Sheki.

Costs on the day

Item Typical cost
Diri Baba Mausoleum small ticket; check on site
Juma Mosque free; donations welcome
Yeddi Gumbez free
Winery tour and tasting varies by estate; ask when booking
Lunch in Shamakhi ~15–25 AZN
Lahij (if added) free to walk; souvenirs extra

Food and drink in Shamakhi

Shirvan cooking is hearty and seasonal. Look for:

  • Plov (saffron rice) and dolma (stuffed vine leaves) with local herbs.
  • Lamb kebabs grilled over vine wood.
  • Fresh bread from a tandir oven.
  • Local wine, of course — and grape juice for the non-drinkers.
  • Honey and fruit sold from roadside stalls, especially in autumn.

For more about Azerbaijani cuisine before you go, see our Baku food guide.

Best time to visit Shamakhi

  • Spring: green hills, mild temperatures, wild flowers on the way.
  • Summer: warm but more comfortable than Baku thanks to the altitude.
  • Autumn (late August–October): harvest season, golden vineyards — the best time for a wine-themed visit.
  • Winter: cold, sometimes snowy on the plateau. Fine for the monuments, but vineyards are bare.

What to wear and bring

  • Modest clothing for the mosque: long trousers or skirt, covered shoulders; a scarf for women.
  • Comfortable shoes for Yeddi Gumbez (uneven ground) and Lahij's cobbles.
  • A light jacket — Shamakhi is cooler and windier than Baku.
  • Cash in manat for small tickets, snacks and village purchases.

Shamakhi for families and limited mobility

Shamakhi is a gentle day: short walks, short stops and not too much time in the car. Children usually enjoy climbing up inside Diri Baba (the staircase is narrow and steep, so supervise them). The Juma Mosque is on flat ground. Yeddi Gumbez has uneven paths. Lahij's streets are steep and cobbled and are not suitable for wheelchairs. For a family or an accessible version, tell us your needs and we will choose the stops accordingly.

Local tips

  • Respect prayer times, especially on Friday around midday, when the Juma Mosque is busy.
  • Book wineries in advance. Many work by appointment and are closed to walk-ins.
  • Combine with a slow lunch. Shamakhi is not about ticking boxes; take time over a long table.
  • Bring a camera with a wide lens for Diri Baba and the Juma Mosque's prayer hall.
  • Go early in summer. The plateau can still get hot in the afternoon.

Shamakhi, Gabala or Gobustan: which day trip first?

If you want… Choose Why
An easy full day with history and wine Shamakhi 2 hours each way, short walks, relaxed lunch
Mountains, forests, a cable car Gabala Greener and higher, but a longer drive
Something unique to Azerbaijan in half a day Gobustan Rock art and mud volcanoes, one hour away
The prettiest historic town Sheki Best with an overnight stay

If you have only one free day and you have already seen Gobustan, Shamakhi is the least tiring way to see the countryside. If you have two days, do Shamakhi on the way to Gabala and sleep there.

Where Shamakhi fits in your trip

Shamakhi is perfect on day three or four of a Baku stay, after the city and Gobustan. For a longer journey through the region, read our guides to Gabala and Sheki, or compare programs in the multi-day itineraries hub. Putivnik's 4-day Baku package (from €229 per person, two travellers, 3-star hotel) can be extended with a Shamakhi day on request.

Combining Shamakhi with Gabala on a longer trip? The 7-day Azerbaijan Tour Program (from €549 per person, two travellers) passes through this region on its way to Gabala. Arriving by air first? Book a private airport transfer (from €25 per car) or the airport shuttle (from €6 per seat).

Plan your Shamakhi day

Want a private Shamakhi day with a winery lunch, or Shamakhi plus Lahij? It is available on request: message us on WhatsApp +994 70 868 09 70 with your date and group size. Prefer to see as much as possible in one go? Join our Shamakhi, Ismayilli, Gabala & Sheki day tour, from €49 per person.

Last updated: 16 November 2026 · Written by the Putivnik team in Baku

Frequently Asked Questions

How far is Shamakhi from Baku?

Shamakhi is about 120 km west of Baku. The drive takes around 2 hours each way on a good highway, with a possible stop at the Diri Baba Mausoleum on the way.

What is Shamakhi famous for?

Shamakhi was the capital of the Shirvan region for centuries. It is known for the Juma Mosque, founded in the 8th century, the Yeddi Gumbez (Seven Domes) royal mausoleums, its vineyards and wineries, and the Shamakhi Astrophysical Observatory in nearby Pirgulu.

Can I visit a winery in Shamakhi?

Yes. Several wineries in the Shamakhi and Ismayilli area welcome visitors for tours and tastings, usually by appointment. Ask us when you book and we will arrange the visit and a sober driver.

Is a Shamakhi day trip enough on its own?

Shamakhi alone fills a relaxed 6–8 hour day. Many travellers combine it with Gabala (a long day) or with the mountain village of Lahij in Ismayilli district.

What should I wear at the Juma Mosque?

Modest clothing: shoulders and knees covered for everyone, and a headscarf for women. Shoes come off before entering the prayer hall. Scarves are often available at the entrance, but bring your own to be safe.

Is Shamakhi safe to visit given the earthquakes?

Yes. Shamakhi has been hit by strong earthquakes in its history, which is why many old buildings were rebuilt, but it is a normal, safe town to visit today.

When is the grape harvest?

The grape harvest in the Shamakhi area usually runs from late August to October, depending on the grape variety and the year. Autumn is a lovely time for a wine-focused visit.