North Korean leader Kim Jong Un and Chinese President Xi Jinping have agreed to deepen political and economic ties during a rare state visit to Beijing, according to North Korean state media. Kim's invitation from Beijing was reciprocal, following a previous state visit by Xi to Pyongyang in June.

China analyst Sense Hofstede from the AMO foreign policy think tank, tells Euronews that Beijing is trying to rebuild its influence in Pyongyang as North Korea draws closer to Russia.

Hofstede says North Korea's support for Russia's war in Ukraine has given North Korea more options. "In the last few years, when relations were strained with China, Pyongyang could show that they had Moscow as an alternative, and now Xi Jinping has to actually work for this relationship", he adds.

In return, he says, Russia had provided technology and battlefield experience, making North Korea a stronger military opponent for South Korea and Japan.

He speculates that China is seeking to strengthen its military ties with North Korea in order to "keep tabs" on what they are learning from Russia. Hofstede expects China to offer Pyongyang more economic incentives to keep the relationship close.