Fresh from a trip to France where his brand of “nationalism” drew rebuke from his hosts, US President Donald Trump says “much was accomplished” in his meetings.

But he’s raising a familiar complaint about American allies’ spending on defence.

Melania Trump, Donald Trump and German Chancellor Angela Merkel during the commemoration ceremony of the 100th anniversary since the end of World War I on November 11, 2018 in Paris.Picture: Getty Images, Guido Bergmann/Bundesregierung via Getty Images

Mr Trump said on Monday morning on Twitter that the US pays billions “protecting other countries, and we get nothing but Trade Deficits and Losses.”

He added: “It is time that these very rich countries either pay the United States for its great military protection, or protect themselves.”

Mr Trump returned late on Sunday from ceremonies marking the 100th anniversary of the end of World War I.

There French President Emmanuel Macron rebuked Trump’s brand of politics, warning: “Patriotism is the exact opposite of nationalism: Nationalism is a betrayal of patriotism.”

It comes at the close of a weekend during which the US president, who proudly declares himself a “nationalist”, stood apart from allied leaders, even on a continent where his brand of populism is on the rise.

He had begun his visit with a tweet slamming the French president’s call for a European defence force, arrived at events alone and spent much of his trip out of sight in the American ambassadors’ residence in central Paris.

On Sunday, he listened as he was lectured on the dangers of nationalist isolation, and then he headed home just as the inaugural Paris Peace Summit was getting underway.