Nearly a week after the storm hit, the lack of potable water was testing nerves in France's poorest overseas territory.
"Seven days and you're not able to give water to the population!" one man shouted at Macron.
"Don't set people against each other. If you set people against each other, we're screwed," Macron told the crowd in the Pamandzi neighbourhood on Thursday night.
"You are happy to be in France. If it wasn't for France, you would be in way deeper shit, 10,000 times more, there is no place in the Indian Ocean where people receive more help."
Aux sapeurs-pompiers, aux forces de sécurité civile, à nos militaires, à tous les soignants, aux gendarmes comme aux policiers, aux services de l'État comme aux collectivités, aux associations et entreprises qui se mobilisent : un immense merci.— Emmanuel Macron (@EmmanuelMacron) Vous incarnez la Fraternité. pic.twitter.com/Z7tDp2qznDDecember 19, 2024
In the past, Macron has often got in trouble with off-the-cuff remarks in public that he says are meant to "tell it like it is" but have often come across as insensitive or condescending to many French people and contributed to his sharp drop in popularity over his seven years as president.
Back home, opposition lawmakers pounced on the comments on Friday.
"I don't think the president is exactly finding the right words of comfort for our Mayotte compatriots, who, with this kind of expression, always have the feeling of being treated differently," Sebastien Chenu, a lawmaker from the far-right National Rally (RN), said.
Hard-left lawmaker Eric Coquerel said Macron's comment was "completely undignified".
Asked about the comments in an interview on Friday, Macron said some of the people in the crowds were RN political militants, and that he wanted to counter the opposition's narrative that France had been neglecting Mayotte.
"I hear that narrative, which is fuelling the National Rally and some of the people who were insulting us yesterday, whereby 'France is doing nothing'," Macron told MayotteLa1ere.
"The cyclone wasn't decided by the government. France is doing a lot. We must be more efficient, but divisive, rabble-rousing speeches won't help."
Officials in Mayotte have only been able to confirm 35 fatalities from Chido, but some have said they fear thousands could have been killed.
Some of the islands' worst-affected neighbourhoods, hillside shantytowns comprised of flimsy huts that are home to undocumented migrants, have not yet been reached by rescue workers.
Macron, who had extended his visit to Mayotte to spend more time surveying the damage from the worst storm to hit the territory in 90 years, responded that authorities were scaling up distributions.
"I understand your impatience. You can count on me," he said.
The French state spends about 1.6 billion euros per year on Mayotte, or about 8 per cent of the budget for overseas territories and 4,900 euros per inhabitant, compared with 7,200 euros people in Reunion Island or 8,500 euros for people in Guadeloupe, according to official 2023 budget documents.
Some in the Tsingoni neighbourood greeted Macron more positively on Friday, thanking him for coming to see them. A 70-year-old woman offered a blessing while patting him on the head.
The previous evening, Macron replied testily to a jeering crowd that chanted for his resignation and accused his government of neglecting Mayotte, which is located some 8,000 km (5,000 miles) from metropolitan France.
He told reporters on Friday that France had invested heavily in Mayotte but that its institutions could not keep up with arrivals of undocumented migrants.
Concerns about immigration have helped make the territory a stronghold for the RN, with 60 per cent voting for Marine Le Pen in the 2022 presidential election runoff.
Macron later led a crisis meeting of officials before departing in the afternoon for Djibouti, where he will share a Christmas meal with French troops stationed there.
Chido also killed at least 73 people in Mozambique and 13 in Malawi after reaching continental Africa, according to officials in those countries.