In the middle of the chaotic Chowk Bazaar, half-hidden between the brass shops and the leather workshops, stands the Mosque of Wali Muhammad Khan — also called Mosque Ali Muhammad Khan — built in 1757 by Nawab Ali Muhammad Khan Khakwani, governor of Multan under the Mughal emperor Alamgir II. It is the second oldest substantially intact mosque in the city after the Eidgah, with a deep blue-tiled façade, three small white domes, and an ablutions tank in front of the prayer hall.
During the Sikh occupation the gatehouse was used as the local court and the prayer hall was converted to house copies of the Guru Granth Sahib; the building was returned to Muslim use under the British. Slip in to escape the bazaar — the courtyard is one of the calmer spots in the old city.