US President Donald Trump (L) shakes hands with Russia's President Vladimir Putin (R) as they pose for a group photo ahead of the Asia-Pacific Economic Cooperation (APEC) Summit leaders gala dinner in the central Vietnamese city of Danang on November 10, 2017.
World leaders and senior business figures are gathering in the Vietnamese city of Danang this week for the annual 21-member APEC summit. / AFP PHOTO / Vietnam News Agency / STR        (Photo credit should read STR/AFP/Getty Images)
STR/AFP/Getty Images
US President Donald Trump (L) shakes hands with Russia's President Vladimir Putin (R) as they pose for a group photo ahead of the Asia-Pacific Economic Cooperation (APEC) Summit leaders gala dinner in the central Vietnamese city of Danang on November 10, 2017. World leaders and senior business figures are gathering in the Vietnamese city of Danang this week for the annual 21-member APEC summit. / AFP PHOTO / Vietnam News Agency / STR (Photo credit should read STR/AFP/Getty Images)
Now playing
02:51
Trump, Putin chat at Asia summit
Fox News/Twitter
Now playing
01:33
ADL wants Fox News to fire Tucker Carlson over racist comments
CNN
Now playing
02:36
The truth behind Covid-19 vaccines for sale on the dark web
Now playing
04:22
Levi's CEO has message for Mitch McConnell
Now playing
01:54
'You think I'm racist': Former Fox News host storms off camera
Korie Robertson and Willie Robertson of the reality series "Duck Dynasty" attend the Capitol File 58th Presidential Inauguration Reception at Fiola Mare on January 19, 2017 in Washington, DC.
Paul Morigi/Getty Images
Korie Robertson and Willie Robertson of the reality series "Duck Dynasty" attend the Capitol File 58th Presidential Inauguration Reception at Fiola Mare on January 19, 2017 in Washington, DC.
Now playing
01:46
'Duck Dynasty' stars discuss raising biracial son on new show
FOX/"The Masked Singer"
Now playing
01:24
Nick Cannon makes big splash in 'Masked Singer' return
The Drew Barrymore Show/YouTube
Now playing
01:26
'Mom' star speaks out about not having kids in real life
Heinz ketchup packets are shown in New York on Monday, August 22, 2005. H.J. Heinz Co., the world's biggest ketchup maker, said first-quarter profit fell 19 percent on expenses to cut jobs and sell businesses.  (Photo by Andrew Harrer/Bloomberg via Getty Images)
Andrew Harrer/Bloomberg/Getty Images
Heinz ketchup packets are shown in New York on Monday, August 22, 2005. H.J. Heinz Co., the world's biggest ketchup maker, said first-quarter profit fell 19 percent on expenses to cut jobs and sell businesses. (Photo by Andrew Harrer/Bloomberg via Getty Images)
Now playing
01:53
Restaurants face a nationwide ketchup packet shortage
Camerota Berman both
CNN
Camerota Berman both
Now playing
02:33
CNN anchor Alisyn Camerota gets surprise tribute from co-anchor
Citigroup Chairman Richard Parsons delivers remarks on the US economy at the New York State Bar Association meetings in New York, January 28, 2009. Troubled US banking giant Citigroup last week named Parsons as its new chairman, the longtime top executive at media giant Time Warner, to steer it through its most challenging period.  AFP PHOTO / Emmanuel Dunand (Photo credit should read EMMANUEL DUNAND/AFP via Getty Images)
EMMANUEL DUNAND/AFP/AFP via Getty Images
Citigroup Chairman Richard Parsons delivers remarks on the US economy at the New York State Bar Association meetings in New York, January 28, 2009. Troubled US banking giant Citigroup last week named Parsons as its new chairman, the longtime top executive at media giant Time Warner, to steer it through its most challenging period. AFP PHOTO / Emmanuel Dunand (Photo credit should read EMMANUEL DUNAND/AFP via Getty Images)
Now playing
02:47
Dick Parsons: Georgia law is a bald-faced attempt to suppress Black vote
Courtesy of Warner Bros. Picture
Now playing
02:54
'Godzilla vs. Kong' is a pandemic box office hit
Now playing
01:30
5 ways to cut your plastic waste
CNN/Getty Images
Now playing
04:40
Stelter: After elevating Gaetz, Fox News barely covering scandal
NASA/Goddard/University of Arizona
Now playing
01:08
See NASA spacecraft successfully land on an asteroid
Now playing
06:51
Alisyn Camerota's kids wish her good luck in new role on CNN

Story highlights

The two informally met on the sidelines of a regional economic summit in Vietnam

The statement reaffirms the leaders' commitment to defeat ISIS in Syria

(CNN) —  

President Donald Trump and Russian President Vladimir Putin informally met on the sidelines of a regional economic summit in Vietnam Saturday and agreed to an extensive statement on the conflict in Syria.

The statement, which reaffirms the leaders’ commitment to defeat ISIS in the country, stresses the need to keep existing military communications open and agrees that the bloody conflict does not have a military solution.

“President Trump and President Putin today, meeting on the margins of the APEC conference in Da Nang, Vietnam, confirmed their determination to defeat ISIS in Syria,” the statement reads, adding later that Trump felt he had a “good meeting with President Putin.”

While the statement mostly addresses long-accepted areas of agreement between the United States and Russia, it comes after Trump and Putin spoke casually at least three times at the ocean-side summit in Da Nang on Friday and Saturday.

A senior State Department official told reporters they were optimistic the US-Russian diplomacy would be met with more success than the past because of the changing landscape in Syria.

“Russia got themselves involved back when it was a civil war. In some respects, the effort to defeat ISIS changed priorities for some,” the official said. “Certainly, for us, the priority was defeating ISIS. I think for Russia, it’s a question of how long do they want to continue to support conflict.”

“What the joint statement indicates is a commitment to get this to a political reconciliation and peace process. That serves their interest, it serves our interest,” the official said.

Asked if Russia has enough influence to bring Syrian leader Bashar al-Assad to the table, the official said: “We’re going to be testing that, we’re going to find out.”

The White House said Trump and Putin spoke for about five minutes in between events at the Asia-Pacific Economic Cooperation summit. The most extensive conversation observed by reporters came as the two leaders shared a friendly, yet brief, walk to a photo op in between meetings on Saturday. The two leaders looked comfortable together and smiled as they talked.

Trump, speaking with reporters aboard Air Force One on Saturday, said the agreement is “going to save tremendous numbers of lives.”

Describing his interactions with Putin, Trump said that they got along well and agreed to the joint statement “very quickly.”

“We seem to have a very good feeling for each other, a good relationship considering we don’t know each other well,” Trump said. “I think it’s a very good relationship.”

According to the joint statement, Trump and Putin “agreed to maintain open military channels of communication” between the two countries on Syria and said their efforts would continue “until the final defeat of ISIS is achieved.”

“The Presidents agreed that there is no military solution to the conflict in Syria,” the statement said, adding that the two agreed to find an “ultimate political solution” to the conflict.

Senior State Department officials later told reporters that the statement was the product of “intense, difficult” negotiations over the past several months, led by Secretary of State Rex Tillerson along with Pentagon officials. The officials said that the defeat of ISIS and reduction of the terror group’s caliphate was going well and that the de-escalation zones implemented in gradual phases had resulted in a significant reduction in the violence and helped save many lives.

The officials said the agreement marked Russia’s firmest commitment yet to a new constitution and free elections in Syria through a UN-led process.

The results of the Trump-Putin meeting in Vietnam mirror what happened when the two world leaders met for the first time in Germany earlier this year.

Though Russia’s interference in the 2016 election was discussed, the two leaders also agreed to a ceasefire in southwest Syria, too.

“This is our first indication of the US and Russia being able to work together in Syria,” Tillerson said at the time.

CNN’s Elise Labott and Ryan Browne contributed to this report.