The Korean War was one of several military conflicts that occurred during the Cold War, as the United States and its allies attempted to stop the spread of communism. ... After the war, Korea became two countries. By invading South Korea, North Korea hoped to reunite the two nations as a single country under communism.