Former Iranian president Akbar Hashemi Rafsanjani died in hospital on Sunday after suffering a heart attack, the ISNA and Fars news agencies reported. He was a pivotal figure in the foundation of the Islamic republic in 1979, and served as president from 1989 to 1997.