US Secretary of State Mike Pompeo (R) walks with Acting Assistant Secretary for Near Eastern Affairs at the State Department David Satterfield (L), and Charge D'affaires at the US Embassy in Baghdad Joey Hood upon arrival in Baghdad for meetings on May 7, 2019. - Pompeo is scheduled to meet with the Iraqi prime minister and president. (Photo by MANDEL NGAN / POOL / AFP)        (Photo credit should read MANDEL NGAN/AFP/Getty Images)
PHOTO: MANDEL NGAN/AFP/Getty Images
US Secretary of State Mike Pompeo (R) walks with Acting Assistant Secretary for Near Eastern Affairs at the State Department David Satterfield (L), and Charge D'affaires at the US Embassy in Baghdad Joey Hood upon arrival in Baghdad for meetings on May 7, 2019. - Pompeo is scheduled to meet with the Iraqi prime minister and president. (Photo by MANDEL NGAN / POOL / AFP) (Photo credit should read MANDEL NGAN/AFP/Getty Images)
Now playing
01:29
Pompeo makes unannounced visit to Iraq
Police shoot stun grenades at Arab Israelis protesting an increase in gang violence in their towns.
PHOTO: CNN
Police shoot stun grenades at Arab Israelis protesting an increase in gang violence in their towns.
Now playing
04:18
Police shoot stun grenades at peaceful Arab-Israeli protesters
Mount Sinabung in Indonesia erupted on March 2, launching a cloud of ash and dust several kilometers into the sky. No one was injured in the eruption but authorities have warned people to stay away from the crater.
PHOTO: olcanological Survey of Indonesia via Reuters
Mount Sinabung in Indonesia erupted on March 2, launching a cloud of ash and dust several kilometers into the sky. No one was injured in the eruption but authorities have warned people to stay away from the crater.
Now playing
00:40
See this volcano in Indonesia erupt
New satellite images taken by Maxar show that North Korea sometime in the past year built a structure that may be intended to obscure entrances to an underground facility where nuclear weapons or nuclear weapons components are stored.
PHOTO: Courtesy Maxar
New satellite images taken by Maxar show that North Korea sometime in the past year built a structure that may be intended to obscure entrances to an underground facility where nuclear weapons or nuclear weapons components are stored.
Now playing
01:47
See images US intelligence claims is a secret weapons site
nigeria kidnapped schoolgirls released Busari pkg intl ldn vpx_00000423.png
nigeria kidnapped schoolgirls released Busari pkg intl ldn vpx_00000423.png
Now playing
02:09
Tears of joy and relief as 279 Nigerian schoolgirls return home
Protesters take cover behind homemade shields as tear gas is fired during a demonstration against the military coup in Yangon on March 1, 2021. (Photo by STR / AFP) (Photo by STR/AFP via Getty Images)
PHOTO: STR/AFP/AFP via Getty Images
Protesters take cover behind homemade shields as tear gas is fired during a demonstration against the military coup in Yangon on March 1, 2021. (Photo by STR / AFP) (Photo by STR/AFP via Getty Images)
Now playing
02:16
Footage shows tear gas, flash bangs used on protesters in Myanmar
01 rivers migrants pkg 02282021
PHOTO: CNN
01 rivers migrants pkg 02282021
Now playing
04:41
CNN correspondent speaks to migrants making dangerous journey to US
PARIS, FRANCE - MARCH 01: Former French President Nicolas Sarkozy leaves court after being found guilty of corruption and influence-peddling on March 01, 2021 in Paris, France. Mr. Sarkozy is only the second French president in modern times to have been convicted, after the conviction of former President Jacques Chirac in 2011.  (Photo by Kiran Ridley/Getty Images)
PHOTO: Kiran Ridley/Getty Images
PARIS, FRANCE - MARCH 01: Former French President Nicolas Sarkozy leaves court after being found guilty of corruption and influence-peddling on March 01, 2021 in Paris, France. Mr. Sarkozy is only the second French president in modern times to have been convicted, after the conviction of former President Jacques Chirac in 2011. (Photo by Kiran Ridley/Getty Images)
Now playing
03:23
'An earthquake in French politics': CNN reporter on Sarkozy sentence
PHOTO: Isaac Abrack
Now playing
03:00
Hear from schoolgirl who escaped abduction in Nigeria
UK police appealed for help Friday, Feb. 20, 2015, to find three teenage girls who are missing from their homes in London and are believed to be making their way to Syria.

The girls, two of them 15 and one 16, have not been seen since Tuesday, Feb. 17, 2015, when, police say, they took a flight to Istanbul. One has been named as Shamima Begum, 15, who may be traveling under the name of 17-year-old Aklima Begum, and a second as Kadiza Sultana, 16. The third girl is identified as Amira Abase, 15.
PHOTO: Metropolitan Police
UK police appealed for help Friday, Feb. 20, 2015, to find three teenage girls who are missing from their homes in London and are believed to be making their way to Syria. The girls, two of them 15 and one 16, have not been seen since Tuesday, Feb. 17, 2015, when, police say, they took a flight to Istanbul. One has been named as Shamima Begum, 15, who may be traveling under the name of 17-year-old Aklima Begum, and a second as Kadiza Sultana, 16. The third girl is identified as Amira Abase, 15.
Now playing
00:39
Shamima Begum loses legal bid to return home to appeal citizenship revocation
PHOTO: Obtained by CNN
Now playing
08:29
How a religious festival turned into a massacre
Saudi Crown Prince Mohammed bin Salman attends a conference in the Saudi capital Riyadh on October 2018.
PHOTO: FAYEZ NURELDINE/AFP/Getty Images
Saudi Crown Prince Mohammed bin Salman attends a conference in the Saudi capital Riyadh on October 2018.
Now playing
02:10
US intel report: Saudi Crown Prince responsible for approving Khashoggi operation
A Fijian rugby team serenaded workers in the Sydney hotel where they are quarantining.
PHOTO: Costa Argyrous
A Fijian rugby team serenaded workers in the Sydney hotel where they are quarantining.
Now playing
00:45
See Fijian rugby team serenade quarantine staff in Australia
Soldiers stand guard outside the CRS Turi prison in Cuenca, Ecuador on February 24, 2021. - At least 79 inmates died in simultaneous riots blamed on gang warfare at four prisons in Ecuador, officials said Wednesday. (Photo by FERNANDO MACHADO / AFP) (Photo by FERNANDO MACHADO/AFP via Getty Images)
PHOTO: FERNANDO MACHADO/AFP/AFP via Getty Images
Soldiers stand guard outside the CRS Turi prison in Cuenca, Ecuador on February 24, 2021. - At least 79 inmates died in simultaneous riots blamed on gang warfare at four prisons in Ecuador, officials said Wednesday. (Photo by FERNANDO MACHADO / AFP) (Photo by FERNANDO MACHADO/AFP via Getty Images)
Now playing
01:54
Ecuador prison riots leave dozens dead in gang 'extermination'
Russian diplomats working in the Pyongyang embassy had to use a handcar as they returned home from North Korea with their family members.
In a video released by the Russian Foreign Ministry on Thursday (February 25) diplomats and their family members are seen pushing a handcar and cheering as they cross the bridge which serves as a demarcation line between the two countries.
PHOTO: Russia MOFA
Russian diplomats working in the Pyongyang embassy had to use a handcar as they returned home from North Korea with their family members. In a video released by the Russian Foreign Ministry on Thursday (February 25) diplomats and their family members are seen pushing a handcar and cheering as they cross the bridge which serves as a demarcation line between the two countries.
Now playing
02:38
Video shows Russian diplomats leaving North Korea on handcar
The Pentagon, the headquarters of the US Department of Defense, located in Arlington County, across the Potomac River from Washington, DC is seen from the air January 24, 2017.  / AFP PHOTO / Daniel SLIM        (Photo credit should read DANIEL SLIM/AFP via Getty Images)
PHOTO: Daniel Slim/Getty Images
The Pentagon, the headquarters of the US Department of Defense, located in Arlington County, across the Potomac River from Washington, DC is seen from the air January 24, 2017. / AFP PHOTO / Daniel SLIM (Photo credit should read DANIEL SLIM/AFP via Getty Images)
Now playing
05:24
US carries out airstrikes on Iran-backed militia groups
(CNN) —  

Secretary of State Mike Pompeo made an unannounced trip to Iraq on Tuesday after abruptly canceling a planned trip to Berlin amid escalating tensions with Iran.

The top US diplomat met with Prime Minister Adil Abd al-Mahdi, President Barham Salih and other officials while on the ground in the Iraqi capital in a roughly four-hour visit, according to the pool traveling with Pompeo.

Pompeo described his meetings as “productive” and said he spoke to the officials “about the importance of Iraq ensuring that it’s able to adequately protect Americans in their country.”

“They both provided assurances that they understood that was their responsibility,” he said.

He also said that the US “wanted to let them know about the increased threat stream that we had seen and give them a little bit more background on that so they could ensure that they were doing all they could to provide protection for our team.”

“They understood too it’s important for their country. We don’t want anyone interfering in their country, certainly not by attacking another nation inside of Iraq and there was complete agreement,” Pompeo said.

US officials have told CNN the US had “specific and credible” intelligence that suggested Iranian forces and proxies were planning to target US forces in locations including Iraq. That intelligence led the Pentagon to recommend a carrier strike group be moved to the region. Speaking to the press pool following his visit, Pompeo reiterated that it was the US’ understanding that “these were attacks that were imminent, these were attacks that were going to happen fairly soon, we’ve learned about them and we’re taking every action to deter them.”

Prior to his arrival in Baghdad, Pompeo declined to go into details when asked to elaborate further on the “tipping point” for his abrupt change of travel plans

Pompeo said he had informed President Donald Trump of his travels on Monday night and that the President had asked him to pass along a number of messages.

“The central messages are this: We want to make sure that Iraq is positioned so that the relationship that we’ve built with them and that our allies in the region have built with them – allies that range all across the Gulf, who understand that the primary threat in the Middle East is Iran – remains strong, that those relationships remain strong,” he said.

The US secretary of state said he and officials discussed how to defeat the remaining pockets of ISIS in the country and foreign terrorist fighters being held in detention camps. Although Pompeo indicated prior to his stop that he would discuss “big energy deals that can disconnect (Iraq) from Iranian energy,” he said afterward that although they spoke about energy infrastructure, they “didn’t spend much time talking about sanctions issues.”

Pompeo abruptly canceled a scheduled trip to Germany earlier on Tuesday “due to pressing issues,” the State Department said. The secretary of state told the pool prior to landing in Iraq that Germany’s foreign minister, Heiko Maas, understood the decision to cancel.

Pompeo’s trip to Iraq came amid news that Iran plans to announce it will reduce its commitments to the Joint Comprehensive Plan of Action (JCPOA) – one year after the US announced its departure from the landmark nuclear deal.

“Iran exercised restraint over the past year, but the other parties to the deal failed to adhere to their commitments so that Iran had no other way but to reduce its commitments under the deal,” a letter from Iranian President Hassan Rouhani to the European Union is expected to read, according to state-run IRNA.

Speaking to the press prior to arriving in Baghdad, Pompeo said the US would look at Iran’s action regarding the JCPOA, but said that compliance with the deal was “binary.”

“You’re either in compliance or you’re not. And so we’ll obviously have to wait and see what they choose to do, but in – you’re – it’s zeroes and ones. You’re either in compliance with the agreement or you’re not. And so, look, we’ve withdrawn from the agreement. The Iranians will have to make their own choice about how they want to proceed,” he said.

CNN’s Nicole Gaouette, Barbara Starr and Tara John contributed to this report.