Completed in 1677, the mosque was included in the list of local significant immovable historical and cultural monuments by Decision No.
[2] Abdulhussein Ordubadi was the chief scribe, meaning the head secretary of the palace, during the reign of Safavid ruler Shah Safi (1629–1642).
The construction date of the mosque, restored in the second half of the 17th century, belongs to earlier periods.
In December of that year, the Azerbaijan Central Executive Committee handed over many mosques, churches, and synagogues to the balance of clubs for educational purposes.
132 of the Cabinet of Ministers of the Republic of Azerbaijan on August 2, 2001, the mosque was included in the list of locally significant immovable historical and cultural monuments.