Rouhani resigned as Iran’s chief nuclear negotiator and as the secretary of the Supreme National Security Council following the election of Mahmoud Ahmadinejad as president in 2005.In March 2013 Rouhani entered the race for president, positioning himself as a critic of the outgoing Ahmadinejad’s economic policies and confrontational approach to foreign affairs.