Keygubad Mosque

The Keygubad Mosque forms part of the UNESCO World Heritage-listed Palace of the Shirvanshahs.

Historically, Keygubad mosque was a building of mosque-madrasa which was adjacent to Darvish tomb.

Abbasgulu Bakikhanov wrote about Bakuvi on his teaching and worshipping in the mosque: “His prayer room, his school and his grave is in there – in the mosque.” Shirvanshah Keyqubad I was in power in 1317–48.

[2]: 102 In the southern part of the lower courtyard of the Shirvanshahs Palace, only the remains of the foundation and a few arches of Keygubad mosque are left.

[2]: 102 Together with the mausoleum and the Keygubad Mosque, the middle courtyard occupies a neutral position in the Shirvanshahs' palace complex due to its location.