In 1910, Korea was annexed by the Empire of Japan. In 1945, after the Japanese surrender at the end of World War II, Korea was divided into two zones along the 38th parallel, with the north occupied by the Soviet Union and the south occupied by the United States. Negotiations on reunification failed, and in 1948, separate governments were formed: the socialist DPRK in the north, and the capitalist Republic of Korea in the south. The Korean War began in 1950, with an invasion by North Korea, and lasted to 1953. The Korean Armistice Agreement brought about a ceasefire and established a demilitarized zone (DMZ), but no formal peace treaty was ever signed.