Leaving the military in 2011, he stood as an independent candidate in the 2012 presidential election and prevailed in the second round of the vote, held in April 2012.