Built as a mosque, it served as a caravanserai, a tekyeh, a bathhouse, a cold water well, and a confectionery. This imposing structure fronts a square in the old town, opposite the water museum. You can pay a small amount to go inside and climb to the top, giving good local views, including of a nearby badgir (water reservoir with wind towers). The square has interesting fountains and is nice at night.