Hafez was born in Shiraz in 1315 and died there in 1390. A beloved figure of the Iranian people, who learn his verses by heart, Hafez was prominent in his home town and held a position as the court poet. In his memory, a small, dome-like structure was erected in Shiraz near his grave at Golgast-e Mosalla in 1452 at the order of Babur Ibn-Baysunkur, a Timurid governor. The Golgast-e Mosalla were gardens (now known as Musalla Gardens) that featured in Hafiz's poetry. With a surface of over 19,000 square metres, the gardens were also home to one of Shiraz's cemeteries, and Babur had a pool built here at the same time as the memorial. Believing they were ordered by omens in Hafez's poetry, Abbas I of Persia and Nader Shah both carried out separate restoration projects in the following 300 years.
A much more substantial memorial was constructed in the gardens in 1773 during the reign of Karim Khan Zand. Situated on the north bank of the seasonal Rudkhaneye Khoshk river in the Musalla Gardens, the Hāfezieh consisted of four central columns, with two rooms built at the east and west end and with the north and south sides remaining open. The building split the gardens into two regions, with the orange grove in the front and the cemetery in the back. The actual tomb was outside of the structure, in the middle of the cemetery, with a marble slab placed over the grave. The marble was engraved by a calligrapher with excerpts from Hafez's poetry.
The tomb was restored in 1857 by a governor of Fars, and a wooden enclosure was built around the tomb in 1878, by another governor of Fars. Following this, the site became a subject of controversy, when, in 1899, Ardeshir, a Parsi from India began to build a shrine around Hafez's grave. Although the philanthropist Parsi had obtained permission from a ulema of Shiraz to build the iron and wood shrine, a doctor of religious law with some authority in Shiraz, ʿAli-Akbar Fāl-Asiri, objected to a Zoroastrian building over the grave of a Muslim. With his followers, he destroyed the half-built construction. The people of Shiraz protested the destruction and the government ordered the rebuilding of the monument, but Fāl-Asiri opposed them and pronounced that he would destroy any building raised there, even if it were erected by the king himself.
A photo of iron transenna, once in place around Hafez's tomb
The site remained in ruins for two years, until 1901 when Prince Malek Mansur Mirza Shao es-Saltaneh placed a decorative iron transenna around Hafez's tomb. It was inscribed with verse and the names of the patrons of the transenna
Activities to restore and expand the memorial to Hafez began in 1931, when the orange grove was repaired and the Hāfezieh was altered by a governor of Fars and Isfahan, Faraj-Allāh Bahrāmi Dabir-e Aʿẓam. Additional improvements were delayed until the Ministry of Education organised for a new building to be built, in 1935. André Godard, a French archaeologist and architect, was the technical director of the Department of Antiquities at the time, and was commissioned to design the new buildings. Other sources however attribute the design to Maxime Siroux.
Alterations to Hafez's tomb involved elevating it one metre above ground level and encircling it with five steps. Eight columns, each ten metres tall, support a copper dome in the shape of a dervish's hat. The underside of the dome is an arabesque and colourful mosaic.
The original, four-columned memorial hall built in 1773 by Karim Khan Zand was extensively expanded. Sixteen pillars were added to the four original, creating a long verandah, and on several façades are engraved ghazals and other excerpts from Hafez's poetry.