Nicolas Sarkozy was elected President of France on 6 May 2007. He thereby became an ex officio Co-Prince of Andorra.
In the presidential election, he defeated the Socialist Party contender Ségolène Royal. Before his presidency, he was leader of the Union for a Popular Movement centre-right party. Under Jacques Chirac's presidency, he served as Minister of the Interior in Jean-Pierre Raffarin's first two governments , then was appointed Minister of Finances in Raffarin's last government , and again Minister of the Interior in Dominique de Villepin's government .