What was the United States' main goal in Vietnam?

What was the United States’ main goal in Vietnam?