Image copyright EPA Image caption Mr Rafsanjani had warm relations with President Hassan Rouhani (L)

BBC Persian's Kasra Naji says Mr Rafsanjani was a great survivor of the Iranian revolution, always managing to stay afloat in the unending political struggles between the hardliners and the moderates, remaining influential.
President Hassan Rouhani praises Rafsanjani as a great man of the Iranian Revolution.