The mosque was built in 1606, according to a project of Sheykh Baheddin Mohammad Amili.
The mosque was built of red brick, which was traditional for Ganja.
There was functioned a madrasah at the mosque for a long time, where the eminent Azerbaijani poet and scientist Mirza Shafi Vazeh taught at that time.
Old Russian bonds put into an envelope had been found during the reconstruction.
[1] This finding helped to draw out a conclusion that the last construction works had been held in 1910, but not at the end of the 18th century, during the Javad Khan's reign, as it was considered earlier.