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".
1 / 14
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 / REUTERS TV / CCTV
2 / 14
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.
© REUTERS / KCNA
3 / 14
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 / AP Video/ CCTV
4 / 14
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.
© AP Photo / Andy Wong
5 / 14
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.
© REUTERS / KCNA
6 / 14
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.
© AP Photo / CCTV
7 / 14
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 / KCNA
8 / 14
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 / KCNA
9 / 14
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 / KCNA
10 / 14
North Korean leader Kim Jong-un is seen writing, in this still image taken from video released on March 28, 2018.
© REUTERS / REUTERS TV / CCTV
11 / 14
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.
© REUTERS / KCNA
12 / 14
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.
© AP Photo / Yao Dawei/Xinhua
13 / 14
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 / KCNA
14 / 14
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.
© REUTERS / KCNA