The mosque was built in the year 1541 by Sher Shah, the Emperor Babur's General in office.
Sher Shah made the mosque become a reality.