The Amir Chakhmaq Complex (Persian: مجموعه میدان امیرچخماق, romanized: Majmūʿa Meydân Amir Čaqmaq; also Romanized Chakhmaq, Chakmaq, Chakhmagh, Chakmak) is a prominent structure in Yazd, Iran, noted for its symmetrical sunken alcoves. It is a mosque located on a square of the same name. It also contains a caravanserai, a tekyeh, a bathhouse, a cold water well, and a confectionery.At night, the building is lit up after twilight hours after sun set with orange lighting in the arched alcoves which makes it a spectacle. During the Iran–Iraq War and the Iraq wars with the United States and Afghanistan, many Iraqis and Afghanis came to inhabit the Amir Chakhmaq Square.
Amir-Chaghmaq Square, according to Dr. Vahdat Zad, an architectural historian who has worked extensively on the spatial aspects of the square, was built in the 15th century by Jalal-al-Din Amir-Chakhmaq, the governor of Yazd in the Timurid era. This square was established on the north side of an important mosque called the Old Mosque, known today as Amir Chakhmaq mosque. According to Vahdat Zad, “the mosque was also founded by Amir-Chakhmaq between 1418 and 1438. The same year the mosque was inaugurated, Haj Qanbar Jahanshahi, who was the subsequent governor, constructed a bazaar and caravanserai at the sides of the square