Bibi-Heybat Mosque: The Shrine That Baku Rebuilt
Ask about a route (opens in WhatsApp)
Essentials
| Type | Landmark |
|---|
The Bibi-Heybat Mosque stands in the Bibi-Heybat settlement, a short trip down the coast from central Baku. It is a working mosque built around a shrine. The building is young. The holy place under it is not.
We wrote this page from the President’s official website, the State Committee on Work with Religious Organizations and the Azerbaijan Tourism Board. We read them on 16 October 2026. The tourism board has no page on the mosque itself. It writes about the settlement only for its oil history.
Bibi-Heybat at a glance
- What it is: a shrine with a mosque complex around it, in daily use for prayer.
- Where: the Bibi-Heybat settlement, on the coast outside the city centre.
- The shrine: called a relic from the 7th century on the President’s website.
- First mosque: built in the 13th century.
- Destroyed: in the 1930s, on Soviet orders.
- Rebuilt: main building opened on 12 July 1998, more buildings on 12 July 2008.
The shrine comes first
People came here for the graves long before there was a large mosque. The President’s website says four descendants of the Prophet rest at Bibi-Heybat. It dates the shrine to the 7th century.
In a 2011 speech, the President called it a shrine with a centuries-old history. That is the reason the site matters to believers. The mosque grew up around the graves, not the other way round.
The official pages we read do not name the people buried here. So we do not name them either. Staff at the shrine, or a guide, can tell you who they were and the stories told about them.
A mosque from the 13th century
The same 2011 speech says a mosque was built at the shrine in the 13th century. It gives no builder and no plan. We found no official text that describes what that first building looked like.
Lost in the 1930s
In the 1930s, the Soviet leadership ordered the mosque destroyed. The President’s speech says so in plain words. The State Committee calls it a monument that was “repressed” under Soviet rule.
Some accounts give an exact year. The official pages we could read give only the decade, so that is what we print.
The rebuild of 1998
Rebuilding Bibi-Heybat was one of the first orders of Heydar Aliyev. Sheikh ul-Islam Allahshukur Pashazade said this in 2013, at the opening of another mosque. He quoted Aliyev’s words at the groundbreaking: “Together we will restore all the religious monuments, centers and sacred places in Azerbaijan.”
The main building of the new mosque opened on 12 July 1998. Pashazade described the revival of religious sites in the country as a course that “began with Bibiheybat”.
The 2008 expansion
Ten years to the day later, on 12 July 2008, more buildings opened. The President said the work made Bibi-Heybat one of the most beautiful mosques in Azerbaijan. He and the First Lady attended the reopening.
The State Committee adds that the grounds were widened on President Ilham Aliyev’s orders. A large complex now surrounds the shrine. In June 2025 it said the Heydar Aliyev Foundation takes a special interest in its upkeep.
Dates in one place
| Date | What happened |
|---|---|
| 7th century | The shrine, as dated by the President’s website |
| 13th century | First mosque built at the shrine |
| 1930s | Mosque destroyed on Soviet orders |
| 12 July 1998 | Main building of the new mosque opens |
| 12 July 2008 | Extra buildings open and the complex grows |
The oil story next door
The settlement is famous for a second reason. The tourism board says the world’s first mechanically drilled oil well went in at Bibi-Heybat in 1846. It started industrial oil production in the country.
Today the rebuilt well stands on Baku Boulevard. Our Baku Boulevard guide covers the long Bayil stretch of the seafront. The tourism board also says the settlement has been refreshed after recent works and now draws people for photos.
What the official pages leave out
We looked for practical rules and found few. No official page we read gives opening hours. None sets out a dress code, a rule on photos or how to get there by bus.
That does not mean there are no rules. It means they are not written down where we can check them. We will not invent them.
Our advice for a visit
This is a place of prayer first. If you only want to look, come between prayer times and keep to the edges of the hall. Ask before you photograph a person.
Our page on praying while travelling covers the wider manners of a mosque visit. They apply here too.
Fitting it into a day
Bibi-Heybat is outside the centre, so it works best with a car. It can be the first stop on a day that heads south-west, towards Gobustan. It also fits at the end of a city tour.
Arranging it
Send us the day you have in mind and the size of your group. Say if anyone wants to pray at the shrine. We will place Bibi-Heybat at a sensible hour and check the timing for you.
Read next
Common questions
Where is the Bibi-Heybat Mosque?
In the Bibi-Heybat settlement. The tourism board describes it as a short trip down the coast from the centre of Baku.
Is the mosque an old building?
The site is old, the building is not. A mosque stood here from the 13th century. The one you see opened in 1998 and grew in 2008.
Who is buried at the shrine?
The President's website says four descendants of the Prophet rest here. It calls the shrine a relic from the 7th century.
What happened to the old mosque?
It was destroyed in the 1930s on the orders of the Soviet leadership, the President said in a 2011 speech.
Is it a working mosque?
Yes. The State Committee on Work with Religious Organizations says the mosque was returned to worshippers after the Soviet years.
What are the opening hours?
None of the official pages we read on 16 October 2026 publish hours. Ask us and we will check before you go.
Is there a dress code?
No official page sets one out. Dress as you would for any mosque: arms and legs covered, and a scarf for women.
Can I see the old oil well nearby?
The tourism board says the first mechanically drilled oil well was sunk at Bibi-Heybat in 1846. A rebuilt well now stands on Baku Boulevard.
A day trip, an overnight route, a transfer, or a custom itinerary? Tell us and we will plan it.
Ask about a route (opens in WhatsApp)