Taza Pir Mosque in Baku was built in 1914 under the patronage of Nabat Khanum Ashurbayova. In 1920, the Soviet government closed the mosque and it functioned as a cinema and a warehouse and since 1943 as a mosque. It was renovated in 2009.

The mosque serves as an official residence for the Caucasian Muslims Office.