Sri Hargobindpur on the Ravi was founded by Guru Arjan Dev Ji and named for his son. Guru Hargobind Sahib Ji later fought one of his four battles nearby, at Ruhela.
When the town was laid out, a mosque was built in it for its Muslim residents. It is called Guru ki Maseet, the Guru's mosque, and it is the only mosque in the world known by that name.
In 1947 the Muslim population left. The mosque was taken over by Nihangs of the Budha Dal, who used it and maintained it and did not convert it.
In November 2001 the Taruna Dal signed a memorandum returning the building for use as a mosque, and namaz was offered there on 23 April 2002 for the first time since 1947. The conservation project ran under the UNESCO and UNDP-UNV Culture of Peace programme, with funding from the Sikh Foundation. It was restored and is again a mosque.
A mosque built by a Sikh Guru, held by Nihangs for fifty years after its congregation was gone, and returned. It is one of the few unambiguously good stories to come out of 1947 in Punjab.
The town sits on the high bank above the Ravi with the river below it, laid out as a planned settlement with a market street, which is what the Guru period foundations generally were.
Guru ki Maseet, the mosque there, was built for the town's Muslims and was maintained by Nihangs after 1947, which is why it survived when almost no other mosque in the district did.
It was handed back for use as a mosque under an agreement in the 2000s. It is one of the few Muslim buildings in Indian Punjab that was never converted or demolished.