During the presidency of Ali Akbar Hashemi Rafsanjani (1989–97), reformers controlled a majority of seats in parliament until 1992 and supported Rafsanjani’s policies for economic reform and the normalization of relations with neighboring countries. The conservatives won a majority of seats in both the 1992 and 1996 parliamentary elections and subsequently used their position in the legislature to weaken or stop outright many reforms proposed by the Rafsanjani government. The administrations of Rafsanjani’s successor, Mohammad Khatami (in office 1997–2005), encountered the same resistance. Reformers won a majority of seats in the 2000 parliamentary elections and then enacted several notable pieces of reform legislation in the ensuing term. Having lost control of the parliament, conservatives tried to use their influence in the judiciary and bureaucracy to impede reforms they perceived as threatening their positions. Conservatives regained control of the parliament in the February 2004 elections.
Although Iran’s foreign relations had improved under Khatami, in the early 2000s earlier progress was eroded by Iran’s ostensible support of terrorist groups in the Middle East and conflict with the European Union and the United States over Iran’s nuclear program. Iran’s international position was jeopardized by the construction of nuclear processing plants to provide fuel for its nuclear energy generating facility at Bushehr, which was being built with significant technical input from Russia. In mid-2005 the surprise election of conservative Mahmoud Ahmadinejad as president led Iran to adopt more confrontational international positions, especially vis-à-vis limitations on its nuclear fuel processing program and its attitude toward Israel. Within Iran, moderate and conservative factions concurred in defending the nuclear program against international interference.