To prevent Communist North Vietnam from successfully conquering South Vietnam, and uniting the whole country under Communist control.
This was part of the US post war policy of Containment, designed to stop the spread of Communism to non Communist states.