North Korean leader Kim Jong Un arrived in Beijing on Tuesday for his first state visit to China, weeks after rejecting US President Donald Trump’s overtures to resume face-to-face talks.

Chinese state broadcaster CCTV reported Kim’s arrival in the capital on Tuesday afternoon. North Korean state media showed him leaving the country aboard his personal armored train on Monday evening.

Kim has visited China several times, but the last state-level visit by a North Korean leader was more than four decades ago. The visit comes as Kim’s international standing grows and Xi seeks to strengthen Beijing’s influence in Pyongyang.

Xi will host a welcome ceremony and banquet, as well as talks on bilateral relations and “issues of mutual interest,” China’s Foreign Ministry told reporters Monday. Kim is expected to receive a formal welcome during a rare diplomatic trip by a leader who is highly sequestered and widely shunned over North Korea’s heavily sanctioned nuclear weapons program.

For Xi, the visit is a focal point of efforts to reinforce China’s long-standing ties with North Korea, as Kim has moved closer to Russian President Vladimir Putin. North Korea has sent munitions and soldiers to fight alongside Russian forces in Moscow’s war against Ukraine.

The visit also gives Beijing an opportunity to present Xi as influential among a diverse group of partners during an intense period of diplomacy with Washington. Xi is welcoming Kim less than two weeks after hosting Trump and Putin for unprecedented three-way talks in the southern Chinese city of Shenzhen, and weeks before another expected meeting with Trump on the sidelines of the G20 in Miami.

Trump has repeatedly sought to restart face-to-face diplomacy with Kim, including during his recent China visit. The two leaders met three times during Trump’s first term, drawing headlines but making no breakthroughs on Pyongyang’s nuclear program before talks fizzled.

Kim “will likely seek to use Xi Jinping as an intermediary to gauge the conditions under which the US would be willing to negotiate with North Korea,” said Cheong Seong-Chang, vice president of the Seoul-based Sejong Institute think tank.

Kim’s visit shows his “readiness to ensure that Pyongyang maintains its diversified foreign policy” and acts as “a visual signal of unity against the US,” said Edward Howell, a North Korea specialist at the University of Oxford and author of ‘A New Axis of Upheaval: North Korea, Russia, China, Iran.’

China, meanwhile, “wants to maintain leverage over the Korean Peninsula, at a time when Kim Jong Un is seeking to reap rewards both from North Korea’s ties with China and its alliance with Russia.”

The trip comes amid warmer ties between China and North Korea, historic partners and treaty allies whose relationship has also been complicated. Xi and Kim last met in June, when Xi made a state visit to Pyongyang and pledged to boost cooperation in areas including trade, science and technology.

Kim made a one-day trip to China in October to see a new bridge linking the two countries. North Korea hopes it could help increase trade and bring Chinese tourists to the country.

Observers say this week’s talks may focus on strengthening economic ties, a key priority for Kim as North Korea’s moribund economy remains hobbled by international sanctions. They will also watch for any mention of the country’s expanding nuclear weapons program.

Beijing has long been viewed as opposed to Pyongyang’s nuclearization and supported previous United Nations sanctions. But it has appeared to shift its position as Kim’s arsenal has grown. Official statements have avoided mentioning the program, which analysts say amounts to tacit acceptance of North Korea as a nuclear state.

Kim has signaled that accepting his country’s nuclear arsenal is a prerequisite for engagement. Last month, days after Trump was in the region, Kim visited a base producing weapons-grade nuclear materials. During Trump’s visit, the US president issued a joint statement with Xi and Putin saying “a nuclear war cannot be won and must never be fought.”

Xi’s recent time with Trump is also likely to feature in this week’s talks. But whether the visit could help restart US-North Korea engagement is unclear, analysts say. They see Kim’s latest moves as an effort to raise the threshold for resuming leader-level talks.

Unlike during Trump’s first term, Kim Jong Un “now possesses a considerably more advanced nuclear arsenal and maintains close strategic cooperation with Russia,” said Cheong of the Sejong Institute.

“As a result, he has little incentive to rush into negotiations with the US.”