Travel

City of Poets, Ancient Capital

Tucked into the foothills of the Greater Caucasus, roughly two hours from Baku, sits a town that has been rebuilt more times than almost any other city in Azerbaijan and still refuses to disappear. That town is Shamakhi, and once you understand its story, you will see why locals call it the city of poets and the ancient capital in the same breath.

This guide walks you through the history behind that nickname, the facts that make Shamakhi genuinely unusual, and the four experiences that make it worth the drive: a mountaintop observatory, the oldest mosque in the country, the ruined seats of the Shirvanshah dynasty, and a real Caucasus safari.

Where Poetry and History Were Born

Shamakhi is not a manufactured tourist stop. For roughly seven centuries, from the 8th to the 15th century, it served as the capital of the Shirvanshah state, one of the longest ruling dynasties in the medieval Islamic world. Traders on the Silk Road passed through its gates, and its wealth attracted scholars, architects and poets from across the Caucasus and Persia.

That legacy of learning is why Shamakhi earned its literary reputation, and it is also why so little of the physical old town survives. Few places on earth have been struck by nature as often as this one.

Sweeping Views and Inspiring Poets

Shamakhi sits on a series of hillsides overlooking the Girdimanchay valley, and the views from the higher parts of town explain a lot about why poets kept being born here. Rolling hills, distant mountain ridges and wide open skies surround the city on every side.

It is the birthplace of several major figures in Azerbaijani and Persian literature, including:

  • Khagani Shirvani, a 12th century court poet celebrated across the Islamic world
  • Imadaddin Nasimi, a 14th century mystic poet whose verses are still studied today
  • Mirza Alakbar Sabir, a 19th century satirist whose work shaped modern Azerbaijani poetry
  • Seyid Yahya Bakuvi and other scholars associated with the city’s intellectual tradition
See also  Birla Mandir Hyderabad – Timings, History, Architecture, Route map

Most of Shamakhi’s medieval old town was flattened by earthquakes, so almost nothing physical remains from that golden age except its cemeteries and a handful of monuments. What survives instead is the reputation, still referenced in classrooms and literature courses across Azerbaijan.

Shamakhi Interesting Facts

A few details help explain why this small city carries such an outsized historical weight.

  1. It has an ancient name. The 2nd century Greco-Roman geographer Claudius Ptolemy recorded the settlement as Kamachia, meaning people have been writing about Shamakhi for close to two thousand years.
  2. It has survived eleven major earthquakes. Shamakhi sits in one of the most seismically active zones in the Caucasus. The 1667 quake alone is believed to have killed tens of thousands of residents, and the city was devastated again in 1859 and 1902.
  3. One building has outlasted almost all of them. The Juma Mosque has survived eight of those eleven earthquakes, making it the closest thing Shamakhi has to a living link with its original era.
  4. It may have given its name to a global textile. Many historians believe Soumak rugs, a flat weave technique known worldwide, take their name from Shamakhi.
  5. It even reached Russian literature. The poet Alexander Pushkin referenced the city in his fairy tale “The Tale of the Golden Cockerel,” calling its ruler the Shemakhan Queen.
  6. It was a Silk Road trading hub. Archaeologists have found Chinese porcelain and coins in Shamakhi, along with the remains of caravanserais that once hosted merchants travelling between Asia and Europe.
  7. It briefly outranked Baku. Until the 1859 earthquake destroyed much of the city, Shamakhi, not Baku, was the administrative capital of the region under the Russian Empire.

What to Do in Shamakhi

Modern Shamakhi blends its literary past with genuinely unusual attractions you will not find together anywhere else in Azerbaijan: an astronomical observatory, a 1,300 year old mosque, ruined mountain fortresses, and a working safari park.

Stargazing at Shamakhi Astrophysical Observatory

About 22 kilometres north of the city centre, in the mountain village of Pirgulu, sits the largest astrophysical observatory in the Caucasus. Named after the 13th century astronomer Nasir al Din Tusi, the observatory was established in 1959 and remains an active research centre under Azerbaijan’s National Academy of Sciences.

What makes it worth the detour is the sky itself. Sitting at over 1,400 metres above sea level with minimal light pollution, the site records around 150 to 200 clear, cloudless nights a year, one of the best stargazing conditions anywhere in the region.

See also  Glass Bridge Rajgir: Complete Visitor Guide, Ticket Price, Timings & Online Booking (2026)

Visitors can typically:

  • Tour a small astronomy museum on site
  • View the region’s largest telescope, a 2 metre Carl Zeiss reflector
  • Join an evening stargazing session if visiting after dark

It is best experienced in summer, when clear skies are most consistent and evening temperatures are still comfortable at altitude.

Visit the First Mosque in Azerbaijan

No visit to Shamakhi is complete without the Juma Mosque, widely recognized as the first mosque built in Azerbaijan and the second oldest in the entire Caucasus region, after the Juma Mosque in Derbent.

Historical inscriptions date its original construction to 743 to 744 AD, during the early spread of Islam into the Caucasus under Arab rule. Since then, the mosque has been:

  • Destroyed and rebuilt after the catastrophic 1859 earthquake
  • Damaged again by the 1902 earthquake, which flattened its 10th century structure
  • Burned during ethnic conflict in 1918
  • Left in ruin through most of the Soviet era, when religious sites were suppressed
  • Fully restored between 2009 and 2013 under a state led reconstruction project

Today the mosque’s three prayer halls, each with its own mihrab, are open to visitors. Beyond its religious significance, it is simply one of the most peaceful, elegant buildings in the city, and a rare physical thread connecting modern Shamakhi to its 8th century origins.

In the Footsteps of the Shirvanshahs

For close to seven hundred years, Shamakhi was the seat of power for the Shirvanshah dynasty, and the hills around the city still hold the physical evidence of that era, even if most of it now lies in ruin.

Key sites worth seeking out include:

  • Gulustan Fortress, a 9th century mountaintop stronghold rising nearly 200 metres above the surrounding land, once used as a secondary residence for the Shirvanshahs. It even had a hidden underground passage leading to a nearby stream for use during a siege.
  • Narin Qala and Bughurt, two lesser known fortress ruins reclaimed by nature, reachable by hiking trails through the surrounding mountains.
  • Yeddi Gumbaz (Seven Domes), a 15th century mausoleum complex at the foot of Gulustan Fortress. It holds the tombs of the last rulers of the Shirvan Khanate and their family, and is also the resting place of the poet Mirza Alakbar Sabir.
See also  Bakı Atıcılıq Mərkəzində Adrenalin Dolu Atıcılıq Təcrübəsi

Hiking between these sites is one of the best ways to understand the scale of what Shamakhi once was, and the views back over the valley from Yeddi Gumbaz are worth the trip on their own.

Safari Tours in the Mountains of Shamakhi

For something completely different from the historical sites, the Shamakhi Safari Park offers the only safari experience of its kind in the Caucasus. Spread across more than 1,000 hectares of highland forest in Pirgulu, the park is home to over a thousand animals brought in from countries including Latvia, Poland, Slovakia and Hungary.

On a typical visit you can expect to see, and sometimes feed:

  • Red deer and fallow deer
  • Altai maral and mouflon
  • Alpaca, bison and yak

Off road vehicles take visitors through the park’s different animal zones, with some routes climbing above 2,000 metres for sweeping mountain views. The park also has an on site restaurant serving local dishes and a shooting range for visitors who want an added activity.

It is best visited in the warmer months, when animals are more active and mountain roads are easier to navigate.

Frequently Asked Questions

Where is Shamakhi located?

Shamakhi sits in the foothills of the Greater Caucasus, about 120 kilometres northwest of Baku, roughly a two hour drive.

Why is Shamakhi called the city of poets?

It is the birthplace of major literary figures including Khagani, Nasimi and Sabir, whose work shaped Azerbaijani and Persian poetry for centuries.

How old is the Juma Mosque?

Historical inscriptions date its original construction to 743 to 744 AD, making it the oldest mosque in Azerbaijan.

Is Shamakhi worth visiting as a day trip from Baku?

Yes. Most visitors combine the mosque, Shirvanshah ruins, and either the observatory or safari park in a single full day trip from Baku.

What is the best time to visit the Shamakhi Astrophysical Observatory?

Summer offers the highest number of clear nights, making it the best season for stargazing visits.

Is the Shamakhi Safari Park suitable for children?

Yes, the park is a popular family activity, though ticket prices and age related discounts are worth checking in advance.

Final Thoughts

Shamakhi packs an unusual amount of history into a small footprint: a dynasty’s capital, a literary birthplace, the country’s oldest mosque, and one of the clearest night skies in the Caucasus, all within a couple of hours of Baku. Few Azerbaijani towns have earned their nicknames as honestly as this one has, rebuilding itself eleven times over and still giving the world poets, rugs and stargazing along the way. Whether you come for the ruins, the mosque, the stars or the safari, Shamakhi rewards anyone willing to make the trip into the mountains.

Leave a Comment