BEIJING — North Korean leader Kim Jong Un completed a three-day state visit to China on Dec. 3, marking the first visit of its kind by a North Korean head of state since 1982. Kim arrived aboard his private, armored train and received a formal reception hosted by Chinese President Xi Jinping.

The reception underscores Beijing's effort to prioritize relations with Pyongyang, particularly as North Korea has strengthened its diplomatic alignment with Russia and backed Moscow's military operations in Ukraine.

During talks, Xi told Kim that the traditional friendship between the two countries would remain unchanged, according to Chinese state media. Kim stated that his primary foreign policy objective is building strategic relations with Beijing, North Korean state media agency KCNA reported.

The visit follows high-level meetings between the two countries. In June, Xi traveled to Pyongyang for only his second visit as China's leader. In October, the New Yalu River Bridge opened after prolonged delays to facilitate cross-border commerce, prompting a symbolic visit to China by Kim.

Kim Gunn, a South Korean lawmaker and former ambassador to the United Kingdom, said the recent summits were coordinated directly through the nations' ruling parties rather than through traditional foreign ministries. Pyongyang's resilience through pandemic-era border closures, its deepening ties with Moscow and rising geopolitical friction with the United States prompted Beijing to reevaluate its diplomatic approach, Kim told Deutsche Welle.

Beijing also values Pyongyang's restraint during major Chinese diplomatic events. North Korea refrained from conducting missile tests during the APEC summit in Shenzhen. Similar restraint is anticipated ahead of the scheduled meeting between Xi and U.S. President Donald Trump on Dec. 14-15.

Han Ki-bum, a former deputy director of South Korea's National Intelligence Service, told Deutsche Welle that Kim sought to solidify the strategic alignment revived during Xi's visit to Pyongyang. Both leaders highlighted the long-term governing capacity of their respective ruling parties, focusing on regime security and socialist solidarity. Han said the leaders likely discussed Xi's upcoming meeting with Trump, though the discussions did not necessarily signal preparations for renewed bilateral talks between Washington and Pyongyang.