Completed in the 19th century, the former mosque was included in the list of immovable historical and cultural monuments of local significance by the Decision No.
In December of that year, the Central Committee of the Azerbaijani Communist Party transferred numerous mosques, churches, and synagogues to clubs for use in educational and cultural activities.
[5] After Azerbaijan regained its independence, the Khanagah Mosque was included in the list of immovable historical and cultural monuments of local significance by Resolution No.
[6][7] However, due to a prolonged lack of maintenance and disuse, the mosque's structure fell into disrepair.
The roof and parts of the walls collapsed over time, leaving the building in a state of ruin.