Well, they were defending the freedoms of South Vietnam, which was a sovereign republic which was being invaded by another country. They were resisting international Communism, which had a goal of establishing Communist governments in every country, to include the United States. So by defending South Vietnam from its invader they were defending the United States.