How did the cold war relate to the Vietnam war?

The Cold War was pretty much the United States opposing communism, and it greatly relates to the Vietnam War because communists wanted to take over South Vietnam, and since the US had made opposing communism one of its goals the US is of couse going to help South Vietnam fight communism.