What was the primary reason for the US to become involved in Vietnam?

To stop the spread of communism.