Sayyid Ruhollah Musavi Khomeini (Persian: syd rwHllh mwswy khmyny [ru:hol'la:he khomei'ni:] ( listen); 24 September 1902 - 3 June 1989), known in the Western world as Ayatollah Khomeini, was an Iranian Shia Muslim religious leader and politician. He was the founder of Iran as an Islamic republic and the leader of its 1979 Iranian Revolution that saw the overthrow of 2500 years of Persian monarchy and Mohammad Reza Pahlavi, the last Shah of Iran.

Khomeini's health declined several years prior to his death. After spending eleven days in Jamaran hospital, Ruhollah Khomeini died on 3 June 1989 after suffering five heart attacks in just ten days, at the age of 86 just before midnight. He was succeeded as Supreme Leader by Ali Khamenei. Iranians poured out into the cities and streets in enormous numbers to mourn Khomeini's death in a spontaneous outpouring of grief. In the scorching summer heat, fire trucks sprayed water on the crowds to cool them. At least 10 mourners were trampled to death, more than 400 were badly hurt and several thousand more were treated for injuries sustained in the ensuing pandemonium. A large percentage of the population of Iran lined the 32-kilometre (20 mi) route to Tehran's Behesht-e Zahra cemetery on 11 June 1989, for the funeral of Ayatollah Ruhollah Khomeini. Western agencies estimated that 2 million paid their respects as the body lay in state. Figures about Khomeini's initial funeral attendance which took place on 4 June range around 2.5-3.5 million people. Early the following day, Khomeini's corpse was flown in by helicopter for burial at the Paradise of Zahra cemetery. Iranian officials postponed Khomeini's first funeral after a huge mob stormed the funeral procession, destroying Khomeini's wooden coffin in order to get a last glimpse of his body or touch of his coffin. In some cases, armed soldiers were compelled to fire warning shots in the air to restrain the crowds. At one point, Khomeini's body fell to the ground, as the crowd ripped off pieces of the death shroud, trying to keep them as if they were holy relics. According to journalist James Buchan: Yet even here, the crowd surged past the makeshift barriers. John Kifner wrote in the New York Times that the "body of the Ayatollah, wrapped in a white burial shroud, fell out of the flimsy wooden coffin, and in a mad scene people in the crowd reached to touch the shroud". A frail white leg was uncovered. The shroud was torn to pieces for relics and Khomeini's son Ahmad was knocked from his feet. Men jumped into the grave. At one point, the guards lost hold of the body. Firing in the air, the soldiers drove the crowd back, retrieved the body and brought it to the helicopter, but mourners clung on to the landing gear before they could be shaken off. The body was taken back to North Tehran to go through the ritual of preparation a second time. The second funeral was held under much tighter security five hours later. This time, Khomeini's casket was made of steel, and in accordance with Islamic tradition, the casket was only to carry the body to the burial site. In 1995, his son Ahmad was buried next to him. Khomeini's grave is now housed within a larger mausoleum complex. CANNOTANSWERAnswer this question using a quote from the following article:

how did he die?

after suffering five heart attacks in just ten days,