The division of Korea between North and South Korea was the result of the Allied victory in World War II in 1945, ending the Empire of Japan's 35-year rule of Korea. The United States and the Soviet Union occupied the country, with the boundary between their zones of control along the 38th parallel.
With the onset of the Cold War, negotiations between the United States and the Soviet Union failed to lead to an independent, unified Korea. In 1948, UN-supervised elections were held in the US-occupied south only. This led to the establishment of the Republic of Korea in South Korea, which was promptly followed by the establishment of the Democratic People's Republic of Korea in North Korea. The United States supported the South, and the Soviet Union supported the North, and each government claimed sovereignty over the whole Korean peninsula.
The Korean War (1950–1953) left the two Koreas separated by the Korean Demilitarized Zone (DMZ) in the later part of the Cold War and beyond.
When the Russo-Japanese War ended in 1905 Korea became a nominal protectorate of, and was annexed in 1910 by, Japan. The Korean king Gojong was removed. In the following decades, nationalist and radical groups emerged, mostly in exile, to struggle for independence. Divergent in their outlooks and approaches, these groups failed to unite in one national movement. The Korean Provisional Government in China failed to obtain widespread recognition.