HANOVER, Germany — President Barack Obama challenged European nations Monday to resist the forces that would divide their increasingly fragile union, calling their cooperation with one another and the U.S. essential to combating a new wave of economic and security trials.

Speaking in Germany on the final day of a three-nation international trip, Mr. Obama revived a theme he first expounded on when he visited this country as a candidate eight years ago and spoke of a more collaborative approach to the world’s challenges that would rely on strong European partners. His vision has helped navigate the global economic collapse, forge an international climate agreement and launch a diplomatic approach toward curbing Iran’s nuclear ambitions, Mr. Obama said.

“None of those things could have happened if I, if the United States, did not have a partnership with a strong and united Europe,” he argued.

But in the wake of the recent attacks on European capitals by Islamic State group, the continued instability of the Middle East that resulted in a refugee crisis that has hit Europe hardest and continued economic insecurity for many, Mr. Obama acknowledged a tendency “to withdraw” that was increasingly common on both sides of the Atlantic. Such detachment could only offer “false comfort,” Mr. Obama warned, adding that such thinking could lead to “oppression,” “segregation,” “internment camps” — a powerful message in Germany where memories of the horrors of Nazism and the Holocaust are a major part of modern Germany’s identity.

Advertise with us

“This is a defining moment. And what happens on this continent has consequences for people around the globe,” Mr. Obama said. “If a unified, peaceful, liberal, pluralistic, free-market Europe begins to doubt itself, begins to question the progress that’s been made over the last several decades, then we can’t expect the progress that is just now taking hold in many places around the world will continue.”

He said he knows “that some will call it blind hope when I say that I am confident that forces that bind Europe together are ultimately much stronger than those trying to pull you apart. But hope is not blind when it is rooted in the memory of all that you have already overcome. … You are the heirs to a struggle for freedom.”

Mr. Obama’s attempt to buck up his international allies underscores the degree to which his foreign policy orthodoxy has been tested near the end of his presidency.

In his speech in Berlin eight years ago, he held up the city’s 20th century history as a case study for the virtue of multilateral action that he intended to pursue as president.

“People of the world, look at Berlin,” he said, “where a wall came down, a continent came together, and history proved that there is no challenge too great for a world that stands as one.”

Advertise with us

In that speech he made two goals on which he can claim progress: working to ensure Iran abandoned its nuclear ambitions and to “come together to save this planet.”

But a review of the speech eight years later also points to his shortcomings. He summoned the world to commit anew to fight the Taliban and al-Qaida and rebuild Afghanistan, fight religious extremism and expand trade — challenges that still remain.

Aides said that in writing the Hanover address, they intended to draw a direct line from his 2008 speech to today, arguing that the nature of current challenges only further call for a multilateral approach.

“The fact of the matter is it’s a dangerous world, and so there are always going to be challenges,” Ben Rhodes, deputy national security adviser, told reporters, mentioning terrorism, migration and Russia’s continued disruptive behavior. “But the approaches that worked in the last seven years are the approaches that need to be applied to those issues.”

On Monday, Mr. Obama announced the U.S. would send another 250 military personnel to Syria to assist in fighting against IS, days after a similar announcement with regard to Iraq. Mr. Obama said Europe, too, would need to “bear its share of the burden.”

Advertise with us

After his speech, Mr. Obama met with German Chancellor Angela Merkel, British Prime Minister David Cameron, French President Francois Hollande and Italian Prime Minister Matteo Renzi for a fresh assessment of the U.S.-led campaign against IS, the war in Syria and the refugee crisis that it has spurred. Over his two days in Germany, in particular, Mr. Obama has praised Ms. Merkel’s handling of the refugee crisis repeatedly, in an effort to help buttress her domestic political standing.

But European leaders made no similar military commitments, Ms. Merkel said after the meeting.

Monday’s speech was seen as directed more at those fellow European leaders from whom Mr. Obama seeks continued cooperation, and historians Mr. Obama will ultimately rely on for validation of his legacy, than at a U.S. audience. His morning address to an audience of several hundred on the grounds of a major international trade show came in the middle of the night back in the U.S.

But he also had a message for Americans. Mr. Obama’s view stands as a contrast with leading Republican presidential hopeful Donald Trump, who has argued the U.S. is overextended abroad, paying too high a price in the search for global stability at a time when Americans face steep challenges of their own.

In an explicit rejection of the rhetoric that has dominated the presidential race in the U.S. — especially Sen. Bernie Sanders’ campaign — the president insisted that carefully negotiated free trade deals are the best means to boost economies and close the gap between the super rich and everyone else.

Advertise with us

“If you’re really concerned about inequality, if you are really concerned about the plight of workers, if you are a progressive, it is my firm belief that you can’t turn inward,” Mr. Obama said.

“We reject the notion of America pulling back,” Mr. Rhodes said. “Our point has always been that focusing American strength through multilateral action both reduces the burden on the United States and leads to more effective and sustainable outcomes.”

Mr. Obama defended the National Security Agency’s massive intelligence-collection efforts, which have alarmed privacy advocates in Europe and created a stir when it was revealed that the U.S. had been listening in on Ms. Merkel’s phone calls. Mr. Obama ended that program, but insisted that a robust collection program was essential to U.S. and European security.

“The threat of terrorism is real,” he said. “Security and privacy don’t have to be a contradiction.”

He called on European nations to maintain support for sanctions designed to punish Russia for its aggression in Ukraine. “We must not allow borders to be drawn by brute force in the 21st century,” he said.

The Washington Post and Bloomberg News contributed.