Gurdwara Data Bandi Chhor was built during 1970s and 1980s at the place where 6th Sikh Guru Hargobind Sahib was arrested and held captive by Mughal Emperor Jahangir in 1609 at the age of 14 years on the pretext that the fine imposed on his father, 5th Sikh Guru Arjan Dev Ji had not been paid by the Sikhs and Guru Hargobind. According to Surjit Singh Gandhi, 52 Hindu Rajas who were imprisoned in the fort as hostages for "millions of rupees" and for opposing the Mughal empire were dismayed as they were losing a spiritual mentor. On getting released Guru Hargobind requested the Rajas to be freed along with him as well. Jahangir allowed Guru Hargobind to free as many rajas he could as long as they are holding on to the guru while leaving the prison. Guru sahib got a special gown stitched which had 52 hems. As Guru Hargobind left the fort, all the captive kings caught the hems of the cloak and came out along with him.