The Juma (Friday) Mosque in the Old City stands on what is believed to be the site of an ancient fire temple, converted to a mosque after the Arab conquest in the seventh century. The present building is mostly from the fifteenth century with a separate minaret from 1437, and a Tsarist-era restoration giving it some of its current details.
It is much less ornate than the Taza Pir but more atmospheric for its age and setting. The interior is a single prayer hall with a wooden minbar and worn stone floors; sit for a few minutes after the call to prayer and the muffled sound of the city outside is one of the more contemplative moments you'll have in Baku.