On 8 February 2009, Khatami announced that he would run in the 2009 presidential election but withdrew on 16 March in favor of his long-time friend and adviser, former Prime Minister of Iran, Mir-Hossein Mousavi.