China maintains an embassy in the North Korean capital of Pyongyang and a consulate general in Chongjin. The Embassy of North Korea in China is located in Beijing's Chaoyang District, while a consulate general is in Shenyang.
China and North Korea have, in the past, enjoyed close diplomatic relations. However, China–North Korea relations have declined markedly over the past few years. The decline in China–North Korea relations is primarily due to growing concern in China over issues such as North Korea's impoundment of Chinese fishing boats and more importantly nuclear weapons program.
Favorable views of North Korea among Chinese people appear to be receding as well. According to a 2014 BBC World Service Poll, 20% of Chinese people view North Korea's influence positively, with 46% expressing a negative view.
In May 1950, North Korea's Prime minister Kim Il-sung secretly visited Beijing to brief Chinese Communist Party chairman Mao Zedong and the Chinese leadership on his war plans. Following setbacks sustained by the Korean People's Army and the crossing of the 38th parallel by the United Nations Command, in October 1950 China entered the Korean War in support of North Korea. In addition to dispatching the Chinese People's Volunteers to Korea to fight against the United Nations Command, China also received North Korean refugees and students and provided economic aid during the war. Following the signing of the Korean War Armistice in 1953, China, along with members of the Eastern Bloc led by the Soviet Union, provided extensive economic assistance to Pyongyang to support the reconstruction and economic development of North Korea.
In 1956, at the 2nd Plenary Session of the 3rd Central Committee, leading pro-China Korean figures known as the Yan'an faction attempted to remove Kim il-sung from power with the support of China and the Soviet Union. This incident has become known as the August Faction Incident and forms the historical basis for north Korean fears of Chinese interference.
The 1960s have been characterized as a "contentious" period in Sino-North Korean relations. The Korean Workers Party criticized the Cultural Revolution and described Mao Zedong as “an old fool who has gone out of his mind.” The People's Republic of China recalled its Ambassador from Pyongyang in October 1966, and the Red Guard criticized North Korea as being "revisionist" in the Dongfanghong newspaper.
In 1961, the two countries signed the Sino-North Korean Mutual Aid and Cooperation Friendship Treaty, whereby China pledged to immediately render military and other assistance by all means to its ally against any outside attack. This treaty was prolonged twice, in 1981 and 2001, with a validity until 2021.
On 1 January 2009, Chinese paramount leader Hu Jintao and North Korean leader Kim Jong-il exchanged greetings and declared 2009 as the "year of China–DPRK friendship," marking 60 years of diplomatic relations between the two countries.
In August 2012, Jang Song-thaek, uncle of Kim Jong-un, met Hu Jintao, General Secretary of the Communist Party of China in Beijing. It has since been widely reported that during their meeting, Jang told Hu Jintao he wished to replace Kim Jong-un with his brother Kim Jong-nam. The meeting was allegedly taped by Zhou Yongkang, then secretary of the Central Political and Legal Affairs Commission, who informed Kim Jong-un of the plot. In December 2013, Jang was executed for treason while in July 2014 Zhou was publicly put under investigation for corruption and other crimes and was arrested in December 2014. These events are said to have marked the beginning of Kim Jong-un's distrust of China, since they had failed to inform him of a plot against his rule, while China took a dislike to Kim for executing their trusted intermediary.
On 5 May 2013, North Korea "grabbed," according to Jiang Yaxian, a Chinese government official, another Chinese fishing boat in a series of impounding Chinese fishing boats. "North Korea was demanding 600,000 yuan ($97,600) for its safe return, along with its 16 crew." According to a New York Times article in December 2014, relations had reached a low point.
In March 2016 the North Korean leader Kim Jong-un visited a missile factory, which China strongly condemned, in a report by the state newspaper the People's Daily revealed that the North Korean politics causes instability on the Korean Peninsula and is comparable to the situation in Syria.
The Foreign Minister of the People's Republic of China Yang Jiechi said that China "resolutely" opposed the 2013 North Korean nuclear test conducted by the Democratic People's Republic of Korea. The North Korean ambassador to China, Ji Jae Ryong, was personally informed of this position on 12 February 2013 in a meeting with Yang Jiechi.
In 2016, right after the North Korean nuclear test in January tensions between the PRC and the DPRK have further grown, the reaction of China was, "We strongly urge the DPRK side to remain committed to its denuclearization commitment, and stop taking any actions that would make the situation worse," spokesperson Hua Chunying said. On 24 February 2016 the United States and China introduced new sanctions against the North Korean regime conducted within the UN context.
see also 2017 North Korean missile tests
The Times of India reported UK Foreign Secretary Boris Johnson saying at a dinner to mark India's independence that the Chinese control 90% of North Korea's trade and it is in the Chinese government's hands to exercise economic pressure on Kim Jong-un to achieve the diplomatic resolution needed to de-escalate tensions in the region. 
Due to Chinese support for sanctions against North Korea, relations in 2017 took a negative turn with North Korean state media attacking China directly on at least three occasions.
In February 2017, after China halted imports of coal from North Korea, the Korean Central News Agency said, "this country [China], styling itself a big power, is dancing to the tune of the US while defending its mean behaviour with such excuses that it was meant not to have a negative impact on the living of the people in the DPRK but to check its nuclear program".
In May 2017, the Korean Central News Agency issued an unprecedented criticism of China, saying "a string of absurd and reckless remarks are now heard from China every day only to render the present bad situation tenser" and that "China had better ponder over the grave consequences to be entailed by its reckless act of chopping down the pillar of the DPRK-China relations". Accusing China of "big-power chauvinism", KCNA said Chinese support for sanctions against North Korea were "an undisguised threat to an honest-minded neighboring country which has a long history and tradition of friendship" and that "The DPRK will never beg for the maintenance of friendship with China".
In September 2017, the Korean Central News Agency slammed negative editorials by the People's Daily and Global Times, saying "some media of China are seriously hurting the line and social system of the DPRK and threatening the DPRK" and calling them "the dirty excrement of the reactionaries of history" who "spouted such extremely ill-boding words".
In February 2018, the Korean Central News Agency again criticized Chinese media. According to KCNA, China Central Television "seriously spoiled the atmosphere of the feast by publishing presumptuous comments of individual experts" and the Global Times was condemned for "the behavior of scattering ashes on other’s happy day as they bring the denuclearization issue".
In March 2018, Worker's Party of Korea's Chairman Kim Jong-un met with Communist Party of China General Secretary Xi Jinping for the first time in Beijing. Xinhua news agency reported that the North Korean leader's trip lasted four days. Kim and his wife Ri Sol Ju were met with honour guards and a lavish banquet hosted by Xi Jinping.
In the 1950s and 1960s, many ethnic Koreans in Northeast China crossed the border into North Korea to escape economic hardship and famine in China. In recent years, the flow of refugees has reversed, with a considerable number of North Koreans fleeing to China. Much of China's trade with the DPRK goes through the port of Dandong on the Yalu River.
During the period of severe food shortage between 1996 and 1998, Beijing provided unconditional food aid to North Korea.
China is North Korea's largest trade partner, while North Korea ranked 82nd on the list of China's trade partners (2009 estimate) China provides about half of all North Korean imports and received a quarter of its exports.
|Trade turnover (million$)||549.646||565.652||656.021||407.750||370.356||488.053||737.457||738.172||1,023.541||1,376.718||1,581.234||1,699.604||1,973.974||2,787.278||2,680.767|
By 2011 trade had increased to $5.6 billion (₩5.04 trillion). Trade with China represents 57% of North Korea's imports and 42% of its exports. Chinese statistics for 2013 indicate that North Korean exports to China were nearly $3 billion, with imports of about $3.6 billion.
In February 2017, China restricted all coal imports from North Korea until 2018. This is considered to be extremely harmful to the North Korean economy, as coal was the top export of the nation, and China was their top trading partner. China has said this was in line with the UN sanctions against North Korea, but it is speculated that this occurred because of a mix of events, including recent nuclear tests, the suspected assassination of Kim Jong-nam, brother of ruler Kim Jong-un, and pressure on China from the rest of the world and especially the United States.
On 28 September 2017, in response to new UN Security Council sanctions over a nuclear test earlier in the month, China ordered all North Korean companies operating in China to cease operations within 120 days. By January 2018 customs statistics showed that trade between the two countries had fallen to the lowest level recorded.
In 2012, a $45 million investment by China's Haicheng Xiyang Group into an iron-ore powder processing plant failed under what the Chinese called "a nightmare". On 21 February 2016 China quietly ended financial support of North Korea without any media publicity. It is reported to be due to the fallout of relations between the two governments.
During the Korean War from 1950–53, China assisted North Korea, sending as many as 3 million soldiers, known as the People's Volunteer Army, to support North Korean forces fighting the South Korean and UN on the Korean peninsula. As many as 180,000 Chinese soldiers were killed.
Since the end of the Korean War, the two states have closely cooperated in security and defense issues. In 1975, Kim Il-sung visited Beijing in a failed attempt to solicit support from China for a military invasion of South Korea. On 23 November 2009, Chinese Defense Minister Liang Guanglie visited Pyongyang, the first defense chief to visit since 2006.
The Korean comrades speak of the 'thousands of victims during the so-called 'revolution', the 'suicides', the 'political chaos', and the 'chaos in the economy,' about Mao Zedong as 'an old fool who has gone out of his mind.' In lectures they cite instances of political and economic pressure on the DPRK from the Chinese government.
According to the information received from the competent department of the Soviet Foreign Ministry, several signs indicate that Sino-Korean relations keep worsening. Among these signs, we mention first of all that recently new pamphlets were published in Beijing, which contained a sharp attack on the Korean Workers’ Party and the person of Kim Il Sung, threatening the leader of the Korean Workers’ Party with that the Korean people would take vengeance upon him for his revisionist policy.
In the event of one of the Contracting Parties being subjected to the armed attack by any state or several states jointly and thus being involved in a state of war, the other Contracting Party shall immediately render military and other assistance by all means at its disposal. (一旦缔约一方受到任何一个国家的或者几个国家联合的武装进攻，因而处于战争状态时，缔约另一方应立即尽其全力给予军事及其他援助)