The Khidki Masjid of Delhi was built in the 14th century by the Prime Minister of Firoz Shah Tughlaq Khan-i-Jahan Junan Shah. Thousands of refugees from West Punjab came to Delhi after Partition in 1947 and the city’s famous monuments became their first home. According to a report, by October 1947, about 80,000 refugees had settled in the refugee camp of Purana Qila and in Humayun’s tomb.
At the time of partition, there came a time when the existence of the window mosque was also threatened, but the Hindus of the area saved the existence of this mosque. Almost all the Muslims of the village had fled in the wake of Partition and the subsequent communal unrest. After that the Hindu residents living there appealed to the government that Khiki Masjid should not be converted into a refugee camp. Khirki village comprises a mixed population of Rajputs, Chauhans, Muslims, Brahmins and Dalits. In this way, Hindus also have a hand in saving the existence of the window mosque.