stylistic:tone, quality:corruption, stylistic:style_transfer
Foreign relations

As a result of its isolation, North Korea is sometimes known as the " hermit kingdom ", a term that originally referred to the isolationism in the latter part of the Joseon Dynasty. Initially, North Korea had diplomatic ties only with other communist countries, and even today, most of the foreign embassies accredited to North Korea are located in Beijing rather than in Pyongyang. In the 1960s and 1970s, it pursued an independent foreign policy, established relations with many developing countries, and joined the Non-Aligned Movement. In the late 1980s and the 1990s its foreign policy was thrown into turmoil with the collapse of the Soviet Bloc. Suffering an economic crisis, it closed a number of its embassies. At the same time, North Korea sought to build relations with developed free market countries.

North Korea joined the United Nations in 1991 together with South Korea. North Korea is also a member of the Non-Aligned Movement, G77 and the ASEAN Regional Forum. As of 2015, North Korea had diplomatic relations with 166 countries and embassies in 47 countries. North Korea does not have diplomatic relations with Argentina, Botswana, Estonia, France, Iraq, Israel, Japan, Taiwan, the United States, and Ukraine. Germany is unusual in maintaining a North Korean embassy. German Ambassador Friedrich Lohr says most of his time in North Korea involved facilitating the delivery of humanitarian aid and agricultural assistance to a population plagued by food shortages.

North Korea enjoys a close relationship with China which is often called North Korea's closest ally. Relations were strained beginning in 2006 because of China's concerns about North Korea's nuclear program. Relations improved after Xi Jinping, General Secretary of the Chinese Communist Party and Chinese President visited North Korea in April 2019. North Korea continues to have strong ties with several Southeast Asian countries such as Vietnam, Laos, Cambodia, and Indonesia. Relations with Malaysia were strained in 2017 by the assassination of Kim Jong-nam. North Korea has a close relationship with Russia and has supported the Russian invasion of Ukraine.

North Korea was previously designated a state sponsor of terrorism by the U.S. because of its alleged involvement in the 1983 Rangoon bombing and the 1987 bombing of a South Korean airliner. On 11 October 2008, the United States removed North Korea from its list of states that sponsor terrorism after Pyongyang agreed to cooperate on issues related to its nuclear program. North Korea was re-designated a state sponsor of terrorism by the U.S. under the administration of Donald Trump on 20 November 2017 after continued nuclear tests. The kidnapping of at least 13 Japanese citizens by North Korean agents in the 1970s and the 1980s has had a detrimental effect on North Korea's relationship with Japan.

US President Trump met with Kim in Singapore on 12 June 2018. An agreement was signed between the two countries endorsing the 2017 Panmunjom Declaration signed by North and South Korea, pledging to work towards denuclearizing the Korean Peninsula. They met in Hanoi from 27 to 28 February 2019, but failed to achieve an agreement. On 30 June 2019, Trump met with Kim along with South Korean president Moon Jae-in at the Korean DMZ.