Macron and German Chancellor Angela Merkel, who on Saturday poignantly visited the forest clearing in northeastern France where the Armistice was signed, had signaled beforehand that they meant to use the Paris ceremony to warn about the modern-day danger of nationalism. "Pay for North Atlantic Treaty Organisation or not!" he added.
The event is tied to the commemoration of the centenary of World War I.
He weathered an imperious lecture from French Present Emmanuel Macron, suffered widespread criticism for canceling a visit to a war cemetery and dodged anti-Trump demonstrations, including topless female protesters with slogans written across their chests.
The US President then attacked Mr Macron and his term in office, saying that he "suffers from a very low approval rating" of 26% in France, and that the country has an "unemployment rate of nearly 10%".
"He was just trying to get onto another subject".
Trump, who has made clear that he has limited patience for broad, multilateral agreements, sat mostly stone-faced as he listened to Macron, who sees himself as Europe's foil to the rising nationalist sentiment, which has taken hold in Hungary and Poland among other countries.
The Kremlin said earlier that the prospect of a full meeting between the USA and Russian presidents had prompted huge global media interest, leading to concern from the French organisers this could overshadow the commemorations. "When we say "our interests come first, those of others don't matter", we erase the very thing that a nation holds most precious, that which gives it life and makes it great: its moral values".
Trump has often criticized his European allies for failing to meet their defense spending targets, leaving the USA to foot much of Europe's security bill.
Only eight countries are expected to meet the target in 2018 - France will likely pay in only 1.79 percent of its GDP.
British Prime Minister Theresa May was at the cenotaph in London for the service there, but had attended a ceremony at Thiepval alongside Mr Macron earlier in the week.
"We have to protect ourselves with respect to China, Russia, and even the United States of America", Macron said on November 6.
"Franco-German reconciliation was at the very heart of what we've been seeing together", said Dominique Moisi, a French foreign policy expert at the Paris-based Institute Montaigne and an informal adviser to the Macron campaign.
He added European allies should buy European-made materials for their defence rather than rely on the USA for them. "I think the main friction is getting out of the Iran deal, which I thought was bad for America and really bad for the world, so, Republican presidents always have a hard time in Europe - I'm not really anxious about this at all".
"He wanted to be here in person to honor the American heroes of World War I. Matthew, thank you". And I think it's fair.