The wonder of this mosque is that it was built in one night, over a dispute between Hindus and Muslims regarding a plot of land during the British colonial period.The small mosque is located near Shah Alam Chowk inside the walled city of Lahore. The Shah Alam Chowk is located near the Shah Almi Market which stands in the place of the Shah Alam Gate, named after Emperor Shah Alam (who died in Lahore in 1712), the third son of the Mughal Emperor Aurangzeb.
Before his death, the gate was called the “Bherwala Gate”. This gate is situated between the Mochi and Lohari Gates. The Shah Alami gate, like many other gates of the walled city, no longer exists.
The entire area was burnt down during a fire at the time of partition (1947) and the subsequent riots. The area was rebuilt and modernised after the fire but the gate was never rebuilt.
The transformation of the area resulted in modifications of the structures and today it has an urban fabric contradictory to the remaining Walled City. Despite rebuilding,
the arrangement of the streets did not change and we still see the narrow twisting streets there which link Shah Alami to other parts of the Walled City.