[2] According to a short epigraphic inscription on the facade, the mosque was constructed in the sixteenth century by the architect Haji Bani,[3] and underwent major restoration[4][5] in AH 1320 (1902/1903).
In December of the same year, the Azerbaijan Communist Party Central Committee transferred many mosques, churches, and synagogues to the balance of educational clubs for use in enlightening directions.
[6] After the restoration of Azerbaijan's independence, the mosque was included in the list of nationally significant immovable historical and cultural monuments by the decision No.
During this restoration, renovation works were carried out, and a vestibule and a special section for women (shebistan) were added.
[3] The mosque's expressive silhouette, the foundation on a cubical base, the distinctive Absheron-type stone pointed dome, and the beautifully emphasized corner of the building in the direction of the street reflect the characteristic features of local architecture.