The North Korean leader, Kim Jong-un, arrived in Beijing on Tuesday on a surprise trip that reflects his deepening relationship with China.

Kim arrived on his bulletproof train at around 2pm local time, having departed Pyongyang on Monday evening. An image released by North Korea’s official news agency, KCNA, on Tuesday showed Kim, accompanied by his wife, Ri Sol-ju, apparently chatting to his foreign minister, Choe Son-hui, in front of his train.

The visit, which is being billed by Beijing as Kim’s first state visit to China, underscores the importance of the Beijing-Pyongyang relationship, even as Kim has pivoted his country towards Russia in recent years.

The Chinese president, Xi Jinping, will hold a welcoming ceremony and banquet for Kim, and China’s ministry of foreign affairs said the two leaders would “exchange views on … issues of common concern”.

There was a heavy police presence around the North Korean embassy in Beijing on Tuesday, with the streets immediately around the building closed to the public. Dozens of uniformed and plainclothes officers were monitoring the area.

The meeting comes shortly after China hosted Donald Trump in Shenzhen for the Asia-Pacific Economic Cooperation (Apec) summit. Trump had indicated he hoped to meet Kim at that summit, but the North Korean leader did not attend.

China did, however, use the Apec summit to host a historic trilateral meeting between Xi, Trump and Vladimir Putin. Even though the meeting failed to achieve any diplomatic breakthroughs, analysts believe that China may want to broker a Kim-Trump meeting next, which would highlight Beijing’s role as a global mediator. Negotiating such a meeting would also boost Xi’s standing with Trump.

This week’s trip is Kim’s seventh known visit to China since taking power in 2011. He made a one-day visit to Dandong, a Chinese city that borders North Korea, in October. Some analysts believed that the Dandong visit, in which he crossed the newly opened New Yalu River Bridge, was a dress rehearsal for a potential meeting with Trump on Chinese soil.

The new bridge opens a rail link that is intended to boost trade between China and North Korea.

China accounts for nearly all of North Korea’s trade. Trade between the two countries reached about $2.7bn last year, a 25% increase on 2024, although still shy of pre-pandemic levels.

In recent years, North Korea has deepened its relationship with Russia, sending tens of thousands of troops to fight alongside Russian soldiers in the war in Ukraine. In return, Russia has provided North Korea with weapons, oil and food.

Kim may want to bolster ties with China to hedge his bets against an unpredictable Russia, while China would prefer to remain the dominant player in the alignment between Russia and North Korea. The elevation of this week’s visit to “state visit”, the highest diplomatic category of meeting, suggests that Kim will be treated with a level of pomp and ceremony similar to Trump’s state visit to Beijing in May.