Mahmoud Ahmadinejad was elected to the presidency twice, in 2005 and 2009. Ahmadinejad ran for office as a conservative populist pledging to fight corruption, defend the interests of the poor, and strengthen Iran's national security. In 2005 he defeated former president Rafsanjani by a wide margin in the runoff, his victory credited to the popularity of his economic promises and a very low reformist voter turnout compared to the 1997 and 2001 elections. This victory gave conservatives control of all branches of Iran's government.