China's President Hu Jintao on Sunday wrapped up a rare three-day visit to North Korea amid efforts to organize a new round of international talks on getting the North to stop developing nuclear weapons.
North Korea's reclusive leader Kim Jong Il was at Pyongyang's airport Sunday for Hu's departure, China's official Xinhua News Agency reported.
China is North Korea's last major ally, giving it what other governments consider to be unique leverage over the isolated country.
It was the first visit by a top Chinese leader to North Korea since 2001. Hu returned to Beijing on Sunday morning, Xinhua said.
During his visit, Hu won a pledge from Kim that North Korea will take part in the next round of six-nation talks on the North's nuclear program, to take place in November.
The Chinese-organized talks also involve the United States, South Korea, Japan and Russia.
At the same time, North Korea kept up its anti-U.S. rhetoric, saying via its official Korean Central News Agency on Saturday that U.S. pressure on human rights and other issues threatens the future of the talks.
Pyongyang promised at the last round of talks in September to give up its nuclear program in exchange for aid and a security guarantee. But it also raised doubts about its willingness to proceed, demanding a civilian nuclear reactor for power generation first.
Hu attended North Korea's famed mass games on Saturday night, China Central Television reported, showing footage of tens of thousands of performers dancing in unison in a giant stadium.
Hu also visited a North Korean glass factory financed by Beijing during his trip. Xinhua quoted Hu as promising that China would encourage its companies to "carry out more cooperation" with the North's decrepit economy, AP reports.