Shamakhi Travel Guide: Karavan Rent A Car in Baku Traveler’s Club
Shamakhi: an ancient capital 130 km from Baku that most visitors overlook
Some places underperform their reputation. Shamakhi doesn’t underperform — it simply doesn’t have one, which is different and stranger. This is one of the oldest cities in the South Caucasus, former capital of the Shirvan state, an important node on the Great Silk Road where merchants from Persia, China, and Genoa stopped for centuries. The Arab geographer Ibn Hawqal, writing in the 10th century, called it “a great and prosperous city.” He was right. The place most Baku visitors drive past without stopping.
One day here covers a mosque built in 743 AD, a mausoleum literally carved into a cliff face, organic wine with mountain views, and — this is the part that surprises everyone — alpacas and capybaras in a Caucasus mountain meadow. All of it within 130 km of central Baku.
This guide is part of the Karavan Rent A Car in Baku Traveler’s Club series. We don’t just rent cars — we know where to drive them.
Table of Contents
- Shamakhi: what this place is
- How to get there from Baku
- Juma Mosque: Azerbaijan’s first mosque
- Diri Baba Mausoleum: a house in a cliff
- Yeddi Gumbaz: royal tombs by the road
- Shamakhi Astrophysical Observatory
- Meysari: wine and vineyards
- The district’s main surprise: the farms
- One-day itinerary
- Practical tips
- Frequently asked questions
- Why this is the best day trip from Baku
Shamakhi: what this place is
Shamakhi was the capital of the Shirvan state as far back as the 3rd–4th centuries — a thousand years before most European cities existed in any recognizable form. The Silk Road passed through it. The city traded silk, saffron, and carpets. Then the earthquakes came. In 1667, one destroyed the city almost completely, killing an estimated 80,000 people. Shamakhi was rebuilt, became important again, was destroyed again.
This layering is what makes it interesting today. Medieval walls next to vineyards. A thousand-year-old mosque next to a boutique winery. An alpaca farm in the mountain meadow where caravans once rested.
How to get there from Baku
Distance from central Baku: approximately 120–130 km on the M2 highway. Driving time on a good road without traffic: about 1.5 hours. The road climbs into the mountains through Maraza and a mountain pass — the views on the way are worth stopping for.
The most practical option is to rent a car in Baku and drive yourself. This gives you the one thing a tour bus can’t — freedom. Stop at the observatory, arrive at the mausoleum before the tour groups, stay at the farm longer than scheduled.
Important: the alpaca farm and other key attractions are not in Shamakhi city itself, but in Meysari village — about 15 minutes further. Plan the route in advance to avoid backtracking.
Juma Mosque: Azerbaijan’s first mosque
Azerbaijan’s first mosque was built in 743 AD — when Charlemagne had not yet become King of the Franks, when London was a small riverside settlement. The Shamakhi Juma Mosque has stood since then. Not the same building — earthquakes have destroyed it several times — but on the same site, the same foundational meaning.
Today it’s a working mosque. Not a museum. People come here to pray, to sit in silence, to bring children. As a traveller in such a place, the experience is entirely different from a tourist attraction. Standing in the courtyard in the quiet is already enough.
Entry for tourists is free. Dress: covered shoulders and legs required for everyone; women need a headscarf (available at the entrance).
Diri Baba Mausoleum: a house in a cliff
Twenty kilometres from Shamakhi, in the village of Maraza, a two-storey mausoleum projects from a vertical cliff face. Not beside the cliff. Not leaning against it. Carved directly out of it — as if the mountain opened and released a building. The structure dates from 1402 and is dedicated to a Sufi saint named Diri Baba; the name translates as “living grandfather” — legend holds that he did not die but entered the rock.
This is one of those places where photographs never convey the actual experience. A photo says “mausoleum in a cliff”; standing there, you understand something different: someone in 1402 looked at this rock face and decided exactly here, exactly this way. And they succeeded so completely that six centuries later people still drive here just to stand and look.
Inside: a small chamber you can enter, with steps carved in stone. Around: silence, a view of the village below, mountains to the horizon. Entry is free. Fridays are busy.
Yeddi Gumbaz: royal tombs by the road
“Yeddi Gumbaz” means “seven domes” — though only three mausoleums survive. This is where the rulers of the Shirvan Khanate were buried in the 18th–19th centuries. The site sits on a hill at the entrance to Shamakhi, visible from the road. Many people drive past without stopping. A mistake.
The light here is best early morning or late afternoon — when the domes glow in that particular colour photographers set alarms for. Between those two windows there’s not much to do except look. That’s enough.
Shamakhi Astrophysical Observatory
Founded in 1959 during the Soviet period, deliberately positioned far from city light pollution in the mountains, where the sky at night is genuinely black. Today it’s one of the largest astrophysical research centres in the South Caucasus, with working scientists and serious telescopes.
Tourists are welcome, but arranging a visit in advance is best. During the day you can walk the grounds and view the dome structures. Occasional night observation sessions happen, but this is not a daily tourist programme — confirm availability before planning your trip around it.
Meysari: wine and vineyards
Meysari village in Shamakhi district has been producing wine since time out of memory — the region appears in medieval sources as a winemaking area. The modern Meysari winery holds something that is rare in the post-Soviet space: a European organic certification covering the full production cycle, from vineyard to bottle.
A winery tour includes a walk through the vineyards, descent into the cellar, and tasting. The premium option — six varieties of wine with local cheeses, meat, and flatbread from a clay oven. The Abgora restaurant at the winery serves what grows nearby: seasonal dishes, local ingredients, mountain views.
Practically important: if you plan a full wine tour with tasting, budget at least 2–2.5 hours. Combining it with the alpaca farm the same day is realistic, but timing needs to be watched. Monday — alpaca farm is closed; plan the route around this.
The district’s main surprise: the farms
Here is what separates Shamakhi district from any other one-day route from Baku: a few minutes from a thousand-year-old mosque and a medieval cliff mausoleum, there are alpacas and capybaras.
The first alpaca farm in Azerbaijan is in Meysari village — the same village as the vineyards. Next to it is a capybara farm: the world’s largest rodents, apparently unaware that they’re supposed to live in South America rather than the Caucasus mountains.
This combination is what makes the route genuinely rare: ancient history, good wine, and exotic animals in one compact area. Detailed guides to each farm are in the Traveler’s Club series: Alpaca Farm in Shamakhi and Capybara Farm in Shamakhi.
One-day itinerary
| Time | Stop | What you do |
|---|---|---|
| 08:00 | Baku | depart early to fit everything in |
| 09:30–10:00 | Diri Baba Mausoleum | 20–30 min; almost no one there in the morning |
| 10:30 | Shamakhi — Juma Mosque + Yeddi Gumbaz | 1–1.5 hours; coffee and tea nearby |
| 12:00–13:30 | Alpaca farm (Meysari) | book in advance; not on Monday |
| 13:30–14:30 | Capybara farm | next to the alpaca farm |
| 14:30–17:00 | Meysari winery + lunch | tour + tasting + Abgora restaurant |
| 17:30–19:00 | Back to Baku | sunset over the mountains on the way |
Practical tips
- When to go. April through October is ideal. Green mountains, good roads. Winter is colder and some attractions have reduced hours.
- Book the alpaca farm in advance. This is not a walk-in attraction. Phone: +994 50 822-10-13, alpaca.az.
- The farm is closed on Mondays. If you go on a weekend, Saturday or Sunday works.
- Clothing. Comfortable footwear for the farms and mausoleum (steps, uneven ground). Covered shoulders and legs for the mosque.
- Cash. In villages, cards are not always accepted — bring manats.
- Mobile signal. Can be patchy in the mountains — download an offline map of the area in advance.
Frequently asked questions
How much time do you need for Shamakhi?
A full itinerary takes one packed day, roughly 08:00 to 19:00. If you want to go slowly and stay overnight, the district has a few guesthouses and small hotels. In that case, arrive in the afternoon and spend the evening in the mountains.
Can you go without a car?
Technically yes — there are buses from Baku to Shamakhi (around 4 AZN), and minibuses to Meysari from there. But the attractions are spread 10–20 km apart, and without a car the itinerary becomes a logistics puzzle. A rental car is the practical solution.
What to bring back from Shamakhi?
Meysari wine (buy it directly at the winery), alpaca wool goods from the farm, local saffron, and traditional Shamakhi fabrics and carpets.
Why this is the best day trip from Baku
Not because it has “many attractions.” Because in one day you get several completely different experiences that would require separate countries elsewhere: the oldest mosque in the Caucasus, a mausoleum in a cliff, mountain wine with a European organic certificate, alpacas and capybaras against the backdrop of Caucasus peaks.
All of it an hour and a half from Baku on a good road.
The Karavan Rent A Car in Baku team built this itinerary not as a press release. We drove it ourselves — and we go back. If you want to do the same, start with the car. We’ve been in business since 2008, we have 400+ vehicles, and 24/7 support. Airport pickup included.
- Choose a car: car rental in Baku — all classes
- Call: +994 55 455 22 45
- WhatsApp: message us on WhatsApp
Next in the Traveler’s Club series: Alpaca Farm in Shamakhi and Capybara Farm in Shamakhi.





