In 1948, Rafsanjani shifted to Qom, a Shiite dominated city of Iran to pursue his studies in Islam. During this period, he met Ayatollah Khomeini, a religious leader and an important figure in the history of Iran. Rafsanjani was greatly influenced by Khomeini.