PYONGYANG, North Korea — Secretary of State Mike Pompeo arrived in North Korea early Wednesday to nail down critical details for an upcoming summit between President Trump and North Korean leader Kim Jong Un, raising hopes that three American prisoners could soon be released.

But even before he landed, Pompeo acknowledged that there was little certainty about the outcome of his visit, saying he was not sure with whom he would be meeting or whether the Americans would be freed.

Trump first disclosed the trip during remarks at the White House on his intention to withdraw the United States from the Iran nuclear deal. The president cast Pompeo’s second visit — his first came during Easter weekend when he met with Kim — as a step forward in the preparation for the summit, which could happen by late June.

“Plans are being made. Relationships are building,” Trump said of the diplomatic opening with the Kim regime. “Hopefully, a deal will happen and, with the help of China, South Korea, and Japan, a future of great prosperity and security can be achieved for everyone.”

Yet important details have not been disclosed, including when and where the leaders’ meeting will take place.

During his remarks, Trump made no mention of the American prisoners, after suggesting last week that their release was imminent. Two people with knowledge of the trip had told The Washington Post before Trump’s speech that Pompeo was expected to bring the prisoners home.

“We’ll all soon be finding out,” Trump replied to a reporter’s question on their fate.

South Korea’s presidential Blue House is expecting North Korea to release the three to Pompeo, an official told the Yonhap News Agency Wednesday morning. Pompeo was also expected to finalize the details for the summit between Kim and Trump.

“We expect him to bring the date, time and the captives,” the official, speaking on the condition of anonymity, told the news agency.

Three Korean Americans — Kim Dong-chul, Kim Hak-song and Tony Kim — have been accused of various acts considered hostile to the government. Trump and his lawyer, Rudolph W. Giuliani, have dropped hints recently that they could be freed soon.

One of the prisoners, Kim Dong-chul, a former Virginia resident in his mid-60s, was detained in October 2015, while the other two were detained after Trump took office.

In an interview with two journalists traveling with him aboard his plane, including a Post reporter, Pompeo said he plans to raise again the U.S. desire that the three men be freed, adding, “It’d be a great gesture if they’d agree to do so.”

The main purpose of Pompeo’s visit to North Korea is to finalize a time and location for the summit between Trump and the North Korean leader, how long their talks will last and to clarify expectations.

“We also want to make sure what our expectations are not,” Pompeo said. “We are not going to head down the path we headed down before. We will not relieve sanctions until such time as we have achieved our objectives. We’re not going to do this in small increments, where the world is coerced into relieving economic pressures.”

Pompeo’s trip came just a day after Kim made a second visit in two months to China to meet with President Xi Jinping, this time in Dalian, where the two leaders were photographed strolling along a beach. The White House said Trump spoke with Xi after that meeting and that the U.S. and Chinese presidents agreed to maintain economic sanctions on North Korea “until it permanently dismantles its nuclear and missile programs.”

Pompeo left Washington from Joint Base Andrews late Monday on a trip that was not announced by the State Department. He was accompanied by several other senior officials, including Brian Hook, State’s policy planning chief, and Matthew Pottinger, the senior Asia director at the National Security Council.

Pompeo’s return to North Korea comes in his second week as the administration’s top diplomat. Arrangements were made in great secrecy befitting a former CIA director. Pompeo has promised to “bring back the swagger” to a State Department that has been sidelined in some foreign policy debates. His high-profile visit appears to be a splashy step in that direction.

Pompeo may get an earful from the officials he meets. Pyongyang has been disgruntled over what it called “misleading” assertions from some U.S. officials that North Korea is considering denuclearization because it fears U.S. military prowess and to alleviate punishing sanctions — a “maximum pressure campaign” laid out by Pompeo’s predecessor, Rex Tillerson, who was fired by Trump in March.

North Korea made its displeasure clear Sunday, the day before Pompeo departed Washington. A spokesman for its foreign ministry labeled the U.S. claims of credit for the apparent shift in North Korean policy a “dangerous attempt” to upset detente between two nations whose leaders only a few months ago were threatening nuclear war.

It is also not clear how North Korea would react to Trump’s announcement that the administration will withdraw the United States from the Iran deal and move to reimpose economic sanctions on Tehran — a move that could reduce trust that the United States is a reliable partner in a deal to freeze or reduce North Korea’s nuclear program.

U.S. officials have sought to tamp down expectations that Pompeo will be able to secure the release of the prisoners who were reportedly recently transferred from a labor camp to a hotel outside Pyongyang.

Now, with a high-level summit possibly only weeks away, U.S. officials have increasingly urged North Korea to release the three American prisoners in advance.

Last weekend, national security adviser John Bolton told Fox News Sunday, “If North Korea releases the detained Americans before the North-U. S. summit, it will be an opportunity to demonstrate their authenticity.”

The end of their incarceration in a country known for its brutal treatment of prisoners would close a long chapter in hostilities between the two countries, a period during which U.S. officials accused North Korea of using American citizens as bargaining chips.

At least 16 U.S. citizens have been arrested in North Korea since the 1990s.

Several have been subjected to show trials and forced to make public confessions to crimes against the state before being sentenced to labor camps. Most served part of their sentences before being released, usually after visits from high-profile Americans such as former presidents Bill Clinton and Jimmy Carter.

Last summer, North Korea turned over custody of University of Virginia student Otto Warmbier, who returned home to Cincinnati in a coma after 17 months in captivity after being detained during an organized tour of Pyongyang. Warmbier died a few days later, and Trump has highlighted his death in several major speeches, including the State of the Union address in January and remarks to the South Korean general assembly last fall.

Warmbier’s parents have sued North Korea in federal court, charging that the regime “brutally tortured and murdered” their son. Trump spoke with the family Friday to offer support ahead of his summit, sources said.

The North Korean regime has long been one of the most brutal in the world, sentencing tens of thousands of its own people to labor camps and killing political rivals.

Among those assassinated since Kim Jong Un took power in 2011 after his father’s death are Kim’s half brother and his uncle.

Nakamura reported from Washington. Fifield reported from Tokyo.