The mosque was built by the architect Karbalayi Safikhan Karabakhi from 1868 to 1870.
After Khojaly's invasion by Karabakh-Armenia forces on 29 February 1992, 200 bodies were first placed in this mosque [REF].