North Korean leader Kim Jong Un said stronger ties with China were a primary objective during a summit with Chinese President Xi Jinping in Beijing on Wednesday, North Korea’s official Korean Central News Agency (KCNA) reported.

Kim told Xi that developing the relationship into a “most unique, sincere and solid strategic partnership” was Pyongyang’s “primary strategic task.” He also said he hoped to raise bilateral relations to “a new historical height” and expressed interest in Chinese expertise in urban construction and rural development, Xinhua reported.

Xi said the two sides had reached a “new, important consensus” on expanding practical cooperation, cross-border infrastructure and high-level exchanges, according to Chinese state broadcaster CCTV and the Xinhua news agency.

Kim arrived in Beijing by armored train on Tuesday for the first full-scale state visit to China by a North Korean leader since his grandfather Kim Il Sung visited in 1982. His wife and sister Kim Yo Jong accompanied him. Xi welcomed the delegation with a red-carpet welcome and a 21-gun salute. The two leaders held formal talks and met over tea on Wednesday.

China is a key ally and trading partner for North Korea. Analysts say the visit could point to potential economic aid for Pyongyang and possible backchannel diplomacy with Washington.

“The very fact that China invited Kim on a state visit amounts to a de facto recognition of North Korea's status as a nuclear-armed state,” Koh Yu-hwan, a professor emeritus at South Korea's Dongguk University, told AFP.

“China probably remains opposed to North Korea's nuclear weapons in principle, but it appears to have accepted that there is little it can do to reverse the situation and has shifted towards managing it.”

North Korea remains under heavy international sanctions because of its nuclear program. Kim departed Beijing on Thursday, according to South Korean media.