 The mosque is believed to have been constructed either by Sidi Bashir, a slave of Sultan Ahmed Shah, or by Malik Sarang, a noble in the court of Mahmud Begada, another Sultan of Gujarat.It has been dated to 1452, although the style and material of the minarets point to the close of Mahmud Begada's reign (1511) or later.The body of the building was destroyed in 1753 during the war between the Marathas and the Khan of Gujarat Sultanate; only two minarets and the arched central gateway connecting them remain.