In 1945, the United States and Soviet Union occupied Korea to disarm the Japanese Armed Forces that occupied the Korean peninsula. The U.S. and Soviet Union split the country at the 38th parallel and each installed a government, with the Soviet Union installing a Stalinist Kim Il-sung in North Korea and in South Korea, US supported anti-communist Syngman Rhee was elected president in 1948. Both leaders were authoritarian dictators.