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.
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.