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
Brooke Baldwin last show goodbye CNN newsroom vpx_00000217.png
CNN
Brooke Baldwin last show goodbye CNN newsroom vpx_00000217.png
Now playing
03:56
'Get a little uncomfortable': See Brooke Baldwin's last words on air
Now playing
01:24
How Kyra Sedgwick got the cops called on Tom Cruise
Now playing
05:18
Anderson Cooper explains how he overcomes being shy
US Navy
Now playing
01:28
Pentagon confirms UFO video is real, taken by Navy pilot
Kristina Barboza
Now playing
03:09
Grieving mom's advice to other families: You can try to help, support and love
Fancy Feast/Purina
Now playing
01:06
Cat food company makes a cookbook ... for humans
Now playing
02:35
WWII veteran: End of the war was 'the biggest thrill of my life'
Google Earth's new timelapse feature
Google
Google Earth's new timelapse feature
Now playing
01:09
Google Earth's new Timelapse feature shows 40 years of climate change in just seconds
FOX/"The Masked Singer"
Now playing
01:23
'The Masked Singer' reveals identity of The Orca
LONDON, ENGLAND - DECEMBER 07:  A visual representation of the digital Cryptocurrency, Bitcoin on December 07, 2017 in London, England. Cryptocurrencies including Bitcoin, Ethereum, and Lightcoin have seen unprecedented growth in 2017, despite remaining extremely volatile. While digital currencies across the board have divided opinion between financial institutions, and now have a market cap of around 175 Billion USD, the crypto sector coninues to grow, as it continues to see wider mainstreem adoption. The price of one Bitcoin passed 15,000 USD across many exchanges today taking it higher than previous all time highs.  (Photo by Dan Kitwood/Getty Images)
Dan Kitwood/Getty Images
LONDON, ENGLAND - DECEMBER 07: A visual representation of the digital Cryptocurrency, Bitcoin on December 07, 2017 in London, England. Cryptocurrencies including Bitcoin, Ethereum, and Lightcoin have seen unprecedented growth in 2017, despite remaining extremely volatile. While digital currencies across the board have divided opinion between financial institutions, and now have a market cap of around 175 Billion USD, the crypto sector coninues to grow, as it continues to see wider mainstreem adoption. The price of one Bitcoin passed 15,000 USD across many exchanges today taking it higher than previous all time highs. (Photo by Dan Kitwood/Getty Images)
Now playing
03:07
Bitcoin has an energy problem
The new all-electric Mercedes-EQS
Mercedes-Benz AG
The new all-electric Mercedes-EQS
Now playing
01:05
See the new all-electric EQS luxury sedan from Mercedes
Now playing
01:32
Scientists turned spiderwebs into music and it sounds like a nightmare
Jeopardy Productions, Inc.
Now playing
01:02
Aaron Rodgers' Green Bay Packers question stumps 'Jeopardy!' contestants
Now playing
05:18
Coinbase CFO: We're an on-ramp to the crypto economy
CNN
Now playing
02:12
'Too dangerous to do anymore': Sacha Baron Cohen on Borat

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.