On May 23, 1997, Mohammad Khatami, who had spent most of the 1990s as head of the National Library, defeated Ali Akbar Nateq Nouri, the speaker of Parliament, to become president of the Islamic Republic of Iran. The election was a turning point in post-revolutionary history—the underdog beat the preferred candidate of Ayatollah Ali Khamenei, successor to Ayatollah Ruhollah Khomeini as Leader of the Islamic Revolution (rahbar), with roughly 20 million votes or 70 percent of the total. Twenty years later, the incumbent president Hassan Rouhani drew parallels between that historic event and his own reelection bid, casting himself as the underdog this time and his main challenger, Ebrahim Raisi, as the man backed by the establishment.