Kim and his wife Ri Sol-ju were treated to a banquet at the stately Great Hall of the People, a performance and a lesson in Chinese tea culture from Chinese President Xi Jinping and his wife Peng Liyan.
The visit was only confirmed after Kim left the country and China's state news agency Xinhua labeled it as "unofficial".
© REUTERS / REUTERS TV / CCTVNorth Korean leader Kim Jong-un shakes hands with Chinese President Xi Jinping, in this still image taken from a video released on March 28, 2018.
North Korean leader Kim Jong-un shakes hands with Chinese President Xi Jinping, in this still image taken from a video released on March 28, 2018.
© REUTERS / KCNANorth Korean leader Kim Jong-un waves from a train, as he paid an unofficial visit to Beijing, China, in this undated photo released by North Korea's Korean Central News Agency (KCNA) in Pyongyang March 28, 2018.
North Korean leader Kim Jong-un waves from a train, as he paid an unofficial visit to Beijing, China, in this undated photo released by North Korea's Korean Central News Agency (KCNA) in Pyongyang March 28, 2018.
© AP Photo / AP Video/ CCTVIn this image taken from video footage run Wednesday, March 28, 2018, by China's CCTV via AP Video, North Korean leader Kim Jong-un, right, and Chinese counterpart Xi Jinping, left, shake hands at Diaoyutai State Guesthouse in Beijing.
3/14
© AP Photo / AP Video/ CCTV
In this image taken from video footage run Wednesday, March 28, 2018, by China's CCTV via AP Video, North Korean leader Kim Jong-un, right, and Chinese counterpart Xi Jinping, left, shake hands at Diaoyutai State Guesthouse in Beijing.
© AP Photo / Andy WongA Chinese man eats breakfast while watching North Korean leader Kim Jong-un and Chinese President Xi Jinping in a welcome ceremony at Beijing's Great Hall of the People, at a restaurant in Jiexi county in south China's Guangdong province, Wednesday, March 28, 2018.
4/14
© AP Photo / Andy Wong
A Chinese man eats breakfast while watching North Korean leader Kim Jong-un and Chinese President Xi Jinping in a welcome ceremony at Beijing's Great Hall of the People, at a restaurant in Jiexi county in south China's Guangdong province, Wednesday, March 28, 2018.
© REUTERS / KCNANorth Korean leader Kim Jong-un and Chinese President Xi Jinping inspect honor guards, as he paid an unofficial visit to Beijing, China, in this undated photo released by North Korea's Korean Central News Agency (KCNA) in Pyongyang March 28, 2018.
North Korean leader Kim Jong-un and Chinese President Xi Jinping inspect honor guards, as he paid an unofficial visit to Beijing, China, in this undated photo released by North Korea's Korean Central News Agency (KCNA) in Pyongyang March 28, 2018.
© AP Photo / CCTVIn this image taken from video footage run Wednesday, March 28, 2018, by China's CCTV via AP Video, North Korean leader Kim Jong-un, left, and his wife Ri Sol Ju wave from a car as they bid farewell to Chinese counterpart Xi Jinping and his wife Peng Liyuan in Beijing.
6/14
© AP Photo / CCTV
In this image taken from video footage run Wednesday, March 28, 2018, by China's CCTV via AP Video, North Korean leader Kim Jong-un, left, and his wife Ri Sol Ju wave from a car as they bid farewell to Chinese counterpart Xi Jinping and his wife Peng Liyuan in Beijing.
© REUTERS / KCNANorth Korean leader Kim Jong-un and wife Ri Sol Ju, and Chinese President Xi Jinping and wife Peng Liyuan meet, as Kim Jong Un paid an unofficial visit to Beijing, China, in this undated photo released by North Korea's Korean Central News Agency (KCNA) in Pyongyang March 28, 2018.
North Korean leader Kim Jong-un and wife Ri Sol Ju, and Chinese President Xi Jinping and wife Peng Liyuan meet, as Kim Jong Un paid an unofficial visit to Beijing, China, in this undated photo released by North Korea's Korean Central News Agency (KCNA) in Pyongyang March 28, 2018.
© REUTERS / KCNANorth Korean leader Kim Jong-un smiles as he paid an unofficial visit to Beijing, China, in this undated photo released by North Korea's Korean Central News Agency (KCNA) in Pyongyang March 28, 2018.
North Korean leader Kim Jong-un smiles as he paid an unofficial visit to Beijing, China, in this undated photo released by North Korea's Korean Central News Agency (KCNA) in Pyongyang March 28, 2018.
© REUTERS / KCNANorth Korean leader Kim Jong-un and wife Ri Sol Ju, and Chinese President Xi Jinping and wife Peng Liyuan attend a banquet, as Kim Jong-un paid an unofficial visit to Beijing, China, in this undated photo released by North Korea's Korean Central News Agency (KCNA) in Pyongyang March 28, 2018.
North Korean leader Kim Jong-un and wife Ri Sol Ju, and Chinese President Xi Jinping and wife Peng Liyuan attend a banquet, as Kim Jong-un paid an unofficial visit to Beijing, China, in this undated photo released by North Korea's Korean Central News Agency (KCNA) in Pyongyang March 28, 2018.
© REUTERS / REUTERS TV / CCTVNorth Korean leader Kim Jong-un is seen writing, in this still image taken from video released on March 28, 2018.
North Korean leader Kim Jong-un is seen writing, in this still image taken from video released on March 28, 2018.
© REUTERS / KCNANorth Korean leader Kim Jong-un smiles during a banquet, as he paid an unofficial visit to Beijing, China, in this undated photo released by North Korea's Korean Central News Agency (KCNA) in Pyongyang March 28, 2018.
North Korean leader Kim Jong-un smiles during a banquet, as he paid an unofficial visit to Beijing, China, in this undated photo released by North Korea's Korean Central News Agency (KCNA) in Pyongyang March 28, 2018.
© AP Photo / Yao Dawei/XinhuaIn this photo released Wednesday, March 28, 2018 by China's Xinhua News Agency, North Korean leader Kim Jong-un, center, and his wife Ri Sol Ju, visit an exhibition highlighting achievements by the Chinese Academy of Sciences.
12/14
© AP Photo / Yao Dawei/Xinhua
In this photo released Wednesday, March 28, 2018 by China's Xinhua News Agency, North Korean leader Kim Jong-un, center, and his wife Ri Sol Ju, visit an exhibition highlighting achievements by the Chinese Academy of Sciences.
© REUTERS / KCNANorth Korean leader Kim Jong-un speaks as he paid an unofficial visit to Beijing, China, in this undated photo released by North Korea's Korean Central News Agency (KCNA) in Pyongyang March 28, 2018.
North Korean leader Kim Jong-un speaks as he paid an unofficial visit to Beijing, China, in this undated photo released by North Korea's Korean Central News Agency (KCNA) in Pyongyang March 28, 2018.
© REUTERS / KCNANorth Korean leader Kim Jong-un and wife Ri Sol Ju, and Chinese President Xi Jinping and wife Peng Liyuan attend a banquet in this undated photo released by North Korea's Korean Central News Agency (KCNA) in Pyongyang March 28, 2018.
North Korean leader Kim Jong-un and wife Ri Sol Ju, and Chinese President Xi Jinping and wife Peng Liyuan attend a banquet in this undated photo released by North Korea's Korean Central News Agency (KCNA) in Pyongyang March 28, 2018.