During Sikh rule, the mosque was seized by Sikh authorities and converted into a gurdwara, after a copy of the Guru Granth Sahib was installed in the mosque following Sikhs complaints that the Muslim call to prayer from the mosque was disturbing their religious ceremonies at a newly constructed "baoli" (stepped well) nearby.