The emotional exchange was broadcast on large screens to applause from the thousands who had gathered at Omaha Beach in Normandy, France, on Thursday to commemorate the 80th anniversary of the D-Day landings. And then it swiftly reverberated across the internet.

An American World War II veteran in a blue cap, seated in a wheelchair with a blue blanket draped over his lap, was introduced to President Volodymyr Zelensky of Ukraine by Justin Trudeau, the Canadian prime minister.

“You’re the savior of the people,” the veteran, Melvin Hurwitz, 99, of Frederick, Md., told Mr. Zelensky after pulling the Ukrainian leader into an embrace. “You bring tears to my eyes.”

“No, no, no, you saved Europe,” Mr. Zelensky responded.

“You’re our hero,” Mr. Hurwitz, whose identity was confirmed by a great-niece, Sarah Hurwitz Robey, said moments later, as Mr. Zelensky knelt next to him for a photograph.

“No, you are our hero,” the president replied.

The moment captured a worldwide audience that had cast its attention to the Normandy beaches and to the men who clambered ashore there on June 6, 1944, helping to turn the tide of World War II after five years of conflict. Those who are still living are in their late 90s or over 100 now.

As the spotlight shone on those men, there was something remarkable about one veteran expressing similar admiration for the Ukrainian leader, who is leading the resistance to a modern-day invasion.

Their embrace mirrored a connection that President Biden made explicit in his remarks at the ceremony, in which he cast the allied effort to repel the Russian invasion of Ukraine as an extension of the battle for freedom in Europe that unfolded on Normandy’s beaches eight decades ago.

“We know the dark forces that these heroes fought against 80 years ago,” Mr. Biden said, addressing a crowd of thousands, including 180 surviving veterans of the D-Day operation, near the graves of 9,388 American service members.

“They never fade,” Mr. Biden added. “Aggression and greed, the desire to dominate and control, to change borders by force — these are perennial. The struggle between dictatorship and freedom is unending.”

Ms. Hurwitz Robey said she first learned about her great-uncle’s meeting with Mr. Zelensky from a friend who sent her the video on Thursday. She said that Mr. Hurwitz was in Normandy on behalf of the Best Defense Foundation, a nonprofit group that organizes battlefield reunions for World War II veterans.

According to the foundation, Mr. Hurwitz was assigned to the U.S. Eighth Air Force and served as a radio gunner on a B-17, the massive bomber known as the Flying Fortress.

Alain Delaquérière contributed research.

world