The Presidency of Mahmoud Ahmadinejad consists of the 9th and 10th governments of the Islamic Republic of Iran. Ahmadinejad's government began in August 2005 after his election as the 6th president of Iran and continued after his re-election in 2009. Ahmadinejad left office in August 2013 at the end of his second term. His administration was succeeded by the 11th government, led by Hassan Rouhani.