"The American and French patriots of World War I embody the timeless virtues of our two republics. Honor and courage. Strength and valor. Love and loyalty, grace and glory,” Trump said at a ceremony at the Suresnes American Cemetery outside of Paris.

“It is our duty to preserve the civilization they defended and to protect the peace they so nobly gave their lives to secure one century ago,” he added.

“The American and French patriots of World War I embody the timeless virtues of our two republic: honor and courage, strength and valor, love and loyalty, grace and glory,” President Trump says at an American commemoration of the end of World War I in Suresnes, France pic.twitter.com/NC11dfmpTg

Several audience members sat in rain ponchos or under umbrellas, while a staffer at one point took a squeegee on stage to remove rain from around the podium in anticipation of the president's arrival.

"You look so comfortable up there under shelter as we’re getting drenched. You’re very smart people," Trump said light-heartedly as he recognized the World War II veterans at the ceremony.

Trump's recognition of the unified effort between America and France served as a bookend to a trip to Paris that at times underscored the fraying relationship between the president and U.S. allies.

Trump was absent earlier Sunday as dozens of world leaders walked side-by-side in the rain along the Champs-Élysées to commemorate the moments the war ended. The president arrived separately due to “security concerns,” the White House said.

At a ceremony that followed, French President Emmanuel Macron condemned the spread of nationalism, calling it a “betrayal of patriotism.”

“By saying our interests first … we raise what a nation holds dearest, what gives it life, what give it grace, and what is essential: its moral values,” Macron said.

Trump has in recent weeks openly described himself as a nationalist, saying he uses the term proudly. He has disputed any suggestion the moniker has racial undertones or is tied to white nationalism, insisting it simply means he cares about putting America ahead of the world.

The president’s visit to Paris has been marked by criticism over controversies at home and abroad.

The president drew blowback on Saturday when he canceled a planned trip to a cemetery in Northern France where American soldiers are buried. Trump was scheduled to make the trip via helicopter, but called it off due to weather.

Kelly and Gen. Joseph Dunford, the chairman of the Joint Chiefs of Staff, made the trip instead via motorcade.

Trump separately attracted widespread condemnation on Saturday for blaming poor forest management for the devastating California wildfires that have killed 25 and forced hundreds of thousands of people to flee their homes.