North Korea has diplomatic relations with 160 states. The country's foreign relations have been dominated by its conflict with South Korea and its historical ties to the Soviet Union. Both the government of North Korea and the government of South Korea claim to be the sole legitimate government of the whole of Korea. The de facto end of the Korean War left North Korea in a military confrontation with South Korea along the Korean Demilitarized Zone.
At the start of the Cold War, North Korea only had diplomatic recognition by communist countries. Over the following decades, it established relations with developing countries and joined the Non-Aligned Movement. When the Eastern Bloc collapsed in the years 1989–1992, North Korea made efforts to improve its diplomatic relations with developed capitalist countries. At the same time, there were international efforts to resolve the confrontation on the Korean peninsula (known as the Korean conflict). At the same time, North Korea acquired n