"I believe if I wish something and visit the mosque, Allah will accept my wish and I'll see success in the future," said Shofik Ahamed, a university student who explored the landmark, a World Heritage Site, on his recent Eid holiday.
But Sixty Dome Mosque and a sprawl of dozens of other mediaeval mosques, public buildings, tombs and graveyards at the estuary confluence of the Ganges and Brahmaputra rivers face an increasingly uncertain future as the planet warms.
Climate change is bringing more extreme heat and rainfall, flooding, erosion and saltwater surges in Bangladesh's low-lying southern delta, cut by hundreds of rivers.
In Mosque City such changes are undermining historic structures, causing the surface of aging bricks and masonry to disintegrate more rapidly, for instance, and allowing fungus and plants to gain a foothold.
Stronger hurricanes and storm surges are also damaging the structures, as is growing saltwater intrusion through the soil and air that seeps into historic buildings, researchers say.
Climate change-driven sea level rise "is a big threat for heritage sites", warned Khandoker Mahfuz-ud-Darain, a Khulna University professor who since 2017 has been looking at such impacts on southern Bangladesh's cultural heritage.
The threats in Mosque City are similar to those facing about 127 protected archaeological sites - many of them historic mosques - in Bangladesh's coastal districts.
Already, at least 50 have been damaged by worsening climate impacts, said Afroza Khan, the Khulna region director for the Bangladesh government's Department of Archaeology.
Mahfuz-ud-Darain believes that, by mid-century, climate change impacts will be the major threat to the country's heritage sites - and said planning should start now to protect them.
As climate impacts strengthen, "normal renovation will not work at these mosques", he warned.
Bagerhat's Mosque City - formerly known as Khalifatabad - was established by Turkish general Ulugh Khan Jahan and flourished until his death in 1459.
Today the mainly brick structures, restored early last century after being abandoned and covered by jungle following Jahan's death, offer some of the best examples of the Bengal Sultanate style of Muslim architecture.
Such monuments "represent a country's tradition", said Sufi Mostafizur Rahman, a professor in Jahangirnagar University's archaeology department.
But history is at risk in Bangladesh and around the world, as global warming imperils World Heritage Sites, from Venice's frequently flooded St Mark's Square to Easter Island's erosion-threatened statues.
"Climate change is among the greatest threats facing cultural and natural heritage sites globally," with at least one in five monuments already at risk, said Thomas Mallard, a spokesperson for the UNESCO World Heritage Centre.
The UN agency is working with countries and communities home to heritage sites to build resilience to the new pressures, he said. UNESCO offers emergency funding to support damage assessment and reconstruction when a disaster hits.
Such funds have already been used to carry out post-flood assessments and repair work in places from Yemen's Old Sana’a to Sudan, where ancient buildings near the Nile River were inundated in 2020.
But Mahfuz-ud-Darain, who sits on the steering committee of the international Climate Heritage Network, said countries like Bangladesh also need to step up their own protection efforts.
He recommends a boost in funding for research into climate impacts on heritage and stepped-up efforts to adapt historic structures to coming changes, as well as ensuring historic preservation efforts sit within broader national climate policy.
Khan, of the government's Department of Archaeology, said efforts were already being made this year to identify the coastal historic sites most at risk.
The department has also proposed changes to the Antiquities Act that would make historic sites threatened or damaged by climate impacts eligible for state funding for protection and repairs.
Mohamed Helal Uddin, who for 30 years has been the imam at Sixty Dome Mosque, hopes help will come soon, noting damage to the historic building "would be a great loss for us".
Rahman, of Jahangirnagar University, agrees.
"We have to save it for future generations," he said.
[Editing by Laurie Goering]