The history of North Korea began with the end of World War II in 1945. The surrender of Japan led to the division of Korea at the 38th parallel, with the Soviet Union occupying the north, and the United States occupying the south. The Soviet Union and the United States failed to agree on a way to unify the country, and in 1948, they established two separate governments – the Soviet-aligned Democratic People's Republic of Korea and the American-aligned Republic of Korea – each claiming to be the legitimate government of all of Korea.
In 1950, the Korean War broke out. After much destruction, the war ended with a stalemate. The division at the 38th parallel was replaced by the Korean Demilitarized Zone. Tension between the two sides continued. Out of the rubble North Korea built an industrialized command economy.
Kim Il Sung led North Korea until his death in 1994. He developed a pervasive personality cult and steered the country on an independent course in accordance with the principle of Juche (self-reliance). However, with natural disasters and the collapse of the Soviet Bloc in 1991, North Korea went into a severe economic crisis. Kim Il Sung's son, Kim Jong Il, succeeded him, and was in turn succeeded by his grandson, Kim Jong Un.
From 1910 to the end of World War II in 1945, Korea was under Japanese rule. Most Koreans were peasants engaged in subsistence farming. In the 1930s, Japan developed mines, hydro-electric dams, steel mills, and manufacturing plants in northern Korea and neighboring Manchuria. The Korean industrial working class expanded rapidly, and many Koreans went to work in Manchuria. As a result, 65% of Korea's heavy industry was located in the north, but, due to the rugged terrain, only 37% of its agriculture.
Northern Korea had little exposure to modern, Western ideas. One partial exception was the penetration of religion. Since the arrival of missionaries in the late nineteenth century, the northwest of Korea, and Pyongyang in particular, had been a stronghold of Christianity.