Who was in the Korean War?

The Korean war was fought between South Korea and the communist North. However, the United States entered the war to prevent the spread of communism in Asia. China and the Soviet Union both gave support to North Korea.