The name Ālī Qāpū, from Persian Ālī, "Imperial or Great", and Turkic Qāpū meaning "gate", was given to this place as it was right at the entrance to the Safavid palaces which stretched from the Maidan Naqsh-i-Jahan to the Chahār Bāgh Boulevard. The building, another wonderful Safavid edifice, was built by decree of Shah Abbas the Great in the early seventeenth century. It was here that the great monarch used to entertain noble visitors, and foreign ambassadors.