The history of North Korea began with the end of World War II in 1945. The end of the Japanese occupation of Korea 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 and lasted until 1953, ending with a stalemate. The previous division at the 38th parallel was replaced by the Korean Demilitarized Zone. Tension between the two sides continued, and 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. Kim Jong Il was in turn succeeded by his own son, Kim Jong Un, who presently rules the country.

Before the division 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. As a result, Pyongyang was called the "Jerusalem of the East".

A Korean guerrilla movement emerged in the mountainous interior and in Manchuria, harassing the Japanese imperial authorities. One of the most prominent guerrilla leaders was the Communist Kim Il Sung.

Division of Korea (1945–1950)

At the Tehran Conference in November 1943 and the Yalta Conference in February 1945, the Soviet Union promised to join its allies in the Pacific War within three months of victory in Europe. On 8 August 1945, after three months to the day, the Soviet Union declared war on Japan. Soviet troops advanced rapidly, and the US government became anxious that they would occupy the whole of Korea. On 10 August, the US government decided to propose the 38th parallel as the dividing line between a Soviet occupation zone in the north and a US occupation zone in the south. The parallel was chosen as it would place the capital, Seoul, under American control. To the surprise of the Americans, the Soviet Union immediately accepted the division. The agreement was incorporated into General Order No. 1 (approved on 17 August 1945) for the surrender of Japan. The division placed sixteen million Koreans in the American zone and nine million in the Soviet zone.

Soviet forces began amphibious landings in Korea by 14 August and rapidly took over the northeast, and on 16 August they landed at Wonsan. On 24 August, the Red Army reached Pyongyang. US forces did not arrive in the south until 8 September.

Throughout August 1945, People's Committees sprang up across Korea, affiliated with the Committee for the Preparation of Korean Independence, which in September founded the People's Republic of Korea. When Soviet troops entered Pyongyang, they found a local People's Committee established there, led by veteran Christian nationalist Cho Man-sik. Unlike their American counterparts, the Soviet authorities recognized and worked with the People's Committees. By some accounts, Cho Man-sik was the Soviet government's first choice to lead North Korea.

On 19 September, Kim Il Sung and 66 other Korean Red Army officers arrived in Wonsan. They had fought the Japanese in Manchuria in the 1930s but had lived in the USSR and trained in the Red Army since 1941. On 14 October, Soviet authorities introduced Kim to the North Korean public as a guerrilla hero.

In December 1945, at the Moscow Conference, the Soviet Union agreed to a US proposal for a trusteeship over Korea for up to five years in the lead-up to independence. Most Koreans demanded independence immediately, but Kim and the other Communists supported the trusteeship under pressure from the Soviet government. Cho Man-sik opposed the proposal at a public meeting on 4 January 1946, and disappeared into house arrest. On 8 February 1946, the People's Committees were reorganized as Interim People's Committees dominated by Communists. The new regime instituted popular policies of land redistribution, industry nationalization, labor law reform, and equality for women.

Meanwhile, existing Communist groups were reconstituted as a party under Kim Il Sung's leadership. On 18 December 1945, local Communist Party committees were combined into the North Korean Communist Party. In August 1946, this party merged with the New People's Party to form the Workers' Party of North Korea. In December, a popular front led by the Workers' Party dominated elections in the North. In 1949, the Workers' Party of North Korea merged with its southern counterpart to become the Workers' Party of Korea with Kim as party chairman.

In 1946, a sweeping series of laws transformed North Korea on Soviet-style Communist lines. The "land to the tiller" reform redistributed the bulk of agricultural land to the poor and landless peasant population, effectively breaking the power of the landed class.Charles K. Armstrong, The North Korean Revolution, 1945–1950 (Ithaca, NY: Cornell University Press), 71–86. This was followed by a "Labor Law", a "Sexual Equality Law", and a "Nationalisation of Industry, Transport, Communications and Banks Law".

Kim established the Korean People's Army (KPA) aligned with the Communists, formed from a cadre of guerrillas and former soldiers who had gained combat experience in battles against the Japanese and later Nationalist Chinese troops. From their ranks, using Soviet advisers and equipment, Kim constructed a large army skilled in infiltration tactics and guerrilla warfare. Before the outbreak of the Korean War, Joseph Stalin equipped the KPA with modern medium tanks, trucks, artillery, and small arms. Kim also formed an air force, equipped at first with ex-Soviet propeller-driven fighter and attack aircraft. Later, North Korean pilot candidates were sent to the Soviet Union and China to train in MiG-15 jet aircraft at secret bases.Blair, Clay, The Forgotten War: America in Korea, Naval Institute Press (2003).

Establishment of the Democratic People's Republic of Korea

As negotiations with the Soviet Union on the future of Korea failed to make progress, the US took the issue to the United Nations in September 1947. In response, the UN established the United Nations Temporary Commission on Korea to hold elections in Korea. The Soviet Union opposed this move. In the absence of Soviet cooperation, it was decided to hold UN-supervised elections in the south only. In April 1948, a conference of organizations from the North and the South met in Pyongyang, but the conference produced no results. The southern politicians Kim Koo and Kim Kyu-sik attended the conference and boycotted the elections in the South. Both men were posthumously awarded the National Reunification Prize by North Korea. The elections were held in South Korea on 10 May 1948.

In response, the Politburo of the Communist Party of the Soviet Union instructed Shtykov to implement the Constitution of North Korea, which the People's Assembly voted to do so on 10 July, establishing the Democratic People's Republic of Korea. On 15 August, the Republic of Korea formally came into existence. In North Korea, new Supreme People's Assembly was elected in August 1948. On 12 December 1948, the United Nations General Assembly accepted the report of UNTCOK and declared the Republic of Korea to be the "only lawful government in Korea".

By 1949, North Korea was a full-fledged Communist state. All parties and mass organizations joined the Democratic Front for the Reunification of the Fatherland, ostensibly a popular front but in reality dominated by the Communists. The government moved rapidly to establish a political system that was partly styled on the Soviet system, with political power monopolised by the Workers' Party of Korea (WPK).

Korean War (1950–1953)

The consolidation of Syngman Rhee's government in the South with American military support and the suppression of the October 1948 insurrection ended North Korean hopes that a revolution in the South could reunify Korea, and from early 1949 Kim Il Sung sought Soviet and Chinese support for a military campaign to reunify the country by force. The withdrawal of most U.S. forces from South Korea in June 1949 left the southern government defended only by a weak and inexperienced South Korean army. The southern régime also had to deal with a citizenry of uncertain loyalty. The North Korean army, by contrast, had benefited from the Soviet Union's WWII-era equipment, and had a core of hardened veterans who had fought either as anti-Japanese guerrillas or alongside the Chinese Communists.Bruce Cumings, The Origins of the Korean War, Vol. 1: Liberation and the Emergence of Separate Regimes, 1945–1947, Princeton University Press In 1949 and 1950, Kim traveled to Moscow with the South Korean Communist leader Pak Hon-yong to raise support for a war of reunification.

Initially Joseph Stalin rejected Kim Il Sung's requests for permission to invade the South, but in late 1949 the Communist victory in China and the development of Soviet nuclear weapons made him re-consider Kim's proposal. In January 1950, after China's Mao Zedong indicated that the People's Republic of China would send troops and other support to Kim, Stalin approved an invasion.Compare: The Soviets provided limited support in the form of advisers who helped the North Koreans as they planned the operation, and Soviet military instructors to train some of the Korean units. However, from the very beginning Stalin made it clear that the Soviet Union would avoid a direct confrontation with the U.S. over Korea and would not commit ground forces even in case of major military crisis. The stage was set for a civil war between the two rival governments on the Korean peninsula. For over a year before the outbreak of war, the two sides had engaged in a series of bloody clashes along the 38th parallel, especially in the Ongjin area on the west coast. On 25 June 1950, claiming to be responding to a South Korean assault on Ongjin, the Northern forces launched an amphibious offensive all along the parallel. Due to a combination of surprise and military superiority, the Northern forces quickly captured the capital Seoul, forcing Syngman Rhee and his government to flee. By mid-July North Korean troops had overwhelmed the South Korean and allied American units and forced them back to a defensive line in south-east South Korea known as the Pusan Perimeter. During its brief occupation of southern Korea, the DPRK regime initiated radical social change, which included the nationalisation of industry, land reform, and the restoration of the People's Committees. According to the captured US General William F. Dean, "the civilian attitude seemed to vary between enthusiasm and passive acceptance".