In mid-15th century, a Muslim colony was founded in the inhospitable mangrove forest of the Sundarbans near the seacoast in the Bagerhat district by a genious architect Ulug Khan Jahan Ali.In Bengali Shat means the number 60. Though it is called Shat Gambuj Mosjid, actually the numbers of Gamboj in the mosque are 81.