Did the Korean war come before or after the cold war?

The Korean War was part of the Cold War.