The mosque is said to date from 1659 - 1668-69 and is also known as the Chinianwali Masjid because of the extraordinary mosaic tile work (Kashi Kari) for which the reign of Shah Jahan was famous. It was completed during Aurangzeb's reign.
Naam Japo (Remembrance of God), Kirat Karo (Earn your livelihood by honest means) and Wand Chakko (Sharing with others, helping those who have less or in need) are the three pillars of Sikh faith formalized by Guru Nanak Dev Ji. Guru Nanak opened his eyes in the village of Talwandi on 15th April 1469 in a Hindu family. He laid the foundation of the Sikh religion and became 1st of the 11 Sikh Gurus.
The fort is believed to be built in 11th century by Gakhars in Potohar region far from the easily accessible paths, lying in oblivion and mourning its glorious past. The fort is built over the high ridges and protected by deep slopes. Now, its walls have disappeared from many places, but the grand beauty of the fort can be seen from some of the remaining doors.