In the first half of the 15th century the Muslim saint and general Khan Jahan Ali cleared the forest at the edge of the Sundarbans and founded a town called Khalifatabad. He built roads, bridges, mosques and great water tanks (dighis), and settled the land for farming. He died in 1459 and his tomb is still one of the most visited shrines in the country.
His buildings created a distinctive style, now called the Khan Jahan style: thick brick walls, round corner towers, curved cornices and many low domes, decorated with terracotta. More than fifty monuments survive around the modern town of Bagerhat, and the Historic Mosque City of Bagerhat was inscribed as a UNESCO World Heritage Site in 1985.
The best known is the Shat Gombuj Masjid (Sixty Dome Mosque), the largest historic mosque in Bangladesh. Despite its name it has more domes than sixty — the name is usually explained by its rows of stone pillars. It is still used for prayer.