 It was during this period, between 1770 and 1780, that a magnificent old mosque, said to have been built by Mughal Emperor Shah Jahan in 1630, was converted into a gurdwara.The only major change was the demolition of its minarets.The gurdwara was named Mastgarh, this designation being commonly used for gurdwaras converted from mosques.