In Paris, mayoral elections follow a complicated two-round system in seventeen districts, which each elect a certain number of delegates, similar to the US presidential election.
Lists of candidates above 5 percent can merge ahead of the runoff, making final results hard to predict.
But the results of the first round, which may be cancelled if the second round cannot go ahead because of the coronavirus outbreak, are a blow to Macron, especially when compared to the 33% his party, En Marche, won in Paris in European elections last year.
Macron's plan to conquer Paris City Hall had become near impossible after Villani, one of his lawmakers who was eventually kicked out, decided to defy the president and challenge the ruling party's official candidate.
Losing Paris would be a blow to Macron's plan to build a local power base for his party and make inroads into the last bastion of the old establishment dominated by socialists or conservatives.
However, it wasn't bad all around for Macron, as two of his ministers, Gerald Darmanin and Franck Riester, won the city halls of Tourcoing in the north and Coulommiers near Paris straight from the first round, with over 50 percent of the vote.