What was the Cause of the Korean War?

There are three well known causes of the Korean War. One being the North’s want to unify the country. Second, the South wanted to oppose and defy communism and Russia’s main goal was to spread communism.