 It was built during the Bengal Sultanate as a royal mosque by Sikandar Shah, who is also buried in the mosque.Shah was a member of the Ilyas Shahi dynasty and carried lofty titles such as "the exalted Sultan" and "Caliph of the Faithful".The mosque is situated in Pandua, a former royal capital.