In 2011, Hollande announced that he would be a candidate in the primary election to select the Socialist Party presidential nominee; he won the nomination and was elected President of France on 6 May 2012 during the second round of voting with 51.6% of the vote against incumbent Nicolas Sarkozy.