,
dome, and
minarets in 1932 The
Abbasid caliph Harun al-Rashid built the first structure over the tomb of Imam Ali in 786 CE, which included a green dome. The Abbasid caliph
al-Mutawakkil flooded the site in 850, but in the 10th century Abu'l-Hayja, the
Hamdanid ruler of Mosul and
Aleppo, rebuilt the shrine in 923, which included a large dome. In 979–980, the Shi'ite
Buyid emir 'Adud al-Dawla expanded the shrine, which included a
cenotaph over the burial site and a new dome. This included hanging textiles and carpets. He also protected Najaf with a wall and citadel, while providing water from the
Euphrates via a
qanat. The
Seljuq sultan Malik-Shah I contributed large gifts to the shrine in 1086, as did Caliph
Al-Nasir. The
vizier Shams al-Din Juvayni added facilities to serve the pilgrims in 1267, and the sultan
Ghazan Khan added the Dar al-Siyada wing for the
sayyids in 1303.
Ibn Battuta visited the shrine in 1326, noting that it was "carpeted with various sorts of carpets of silk and other materials, and contains candelabra of gold and silver, large and small." Between the three tombs, "are dishes of gold and silver, containing rose-water, musk and various kinds of perfumes. The visitor dips his hand in this and anoints his face with it for a blessing." A fire destroyed the shrine in 1354, but it was rebuilt around 1358 by the
Jalairid sultan Shaikh Awais Jalayir. He also interred his father's remains,
Hasan Buzurg in the courtyard.
Timur ordered the restoration of the shrine after a visit to Najaf.
Suleiman the Magnificent also offered gifts, which probably helped restore the shrine, after a visit in 1534. The
Safavid Shah Ismail I visited in 1508, but it was
Abbas I who visited Najaf twice and commissioned 500 men to rebuild the shrine in 1623. The restoration was completed by his grandson
Shah Safi al-Din in 1632. This restoration included a new dome, expanded courtyard, a hospital, kitchen, and hospice, so as to accommodate the numerous pilgrims. The cenotaph was restored in 1713 and the dome stabilized in 1716. In 1742,
Nader Shah gilded the dome and minaret, and this was chronicled by
Nasrallah al-Haeri in his famous poem,
iḏhā ḍhāmak al-dahra yawman wa jārā (). Nader Shah's wife paid for the walls and courtyard to be rebuilt and the retiling of the
iwan faience. In 1745, the iwan was rebuilt as a gilt
muqarnas of nine tiers. In 1791, a raised stone floor covered the tombs in the courtyard, creating a cellar space for them. The first European visitors included
Carsten Niebuhr in 1765,
William Loftus in 1853, and
Johann Ludwig Burckhardt in 1864. In 1886, Sultan Naser al-Din, also repaired the dome because there were breaks in it due to the weather.
Independent Iraq During the uprising of March 1991, following the
Persian Gulf War,
Saddam Hussein's
Republican Guards damaged the shrine, where members of the Shia opposition were cornered, in storming the shrine and massacring virtually all its occupants. Afterwards, the shrine was closed for two years, officially for repairs. Saddam Hussein also deported to Iran a large number of the residents of the area who were of Iranian descent. In the three years after the
2003 invasion of Iraq by the
U.S. military, a number of violent incidents occurred at the mosque: • April 10, 2003: former Saddam Hussein era custodian
Haydar Al-Killidar Al-Rufaye and anti-Saddam Shia leader
Sayed Abdul Majid al-Khoei, the son of Grand Ayatollah
Abu al Qasim al-Khoei,
were killed by a mob near the mosque. Al-Khoei had returned from exile in Britain to encourage cooperation with the
U.S.-led occupation of Iraq. • August 29, 2003: the
2003 Imam Ali Shrine bombing. A
car bomb exploded outside the mosque just as the main Friday prayers were ending. Somewhere between 85 and 125 people were killed, including the influential Ayatollah
Sayed Mohammed Baqir al-Hakim, the Shia leader of the
Supreme Council for the Islamic Revolution in Iraq. The blast is thought to be the work of
Abu Musab al-Zarqawi. • May 24, 2004: unidentified
mortar fire hit the shrine, damaging gates which lead to the tomb of Imam Ali. • August 5, 2004:
Muqtada al-Sadr and the
Mahdi Army seized the mosque and used it as a military base for launching attacks against the Iraqi police, the provincial government and coalition forces. The fighting was eventually ended by a peace agreement. Neighbouring buildings suffered considerable damage, but the mosque itself suffered only superficial damage from stray bullets and shrapnel. • August 10, 2006: a suicide bomber blew himself up near the shrine, killing 40 people and injuring more than 50 others. ==Architecture and decoration==