The North Vietnamese government and Viet Cong viewed the conflict as a colonial war, fought initially against France, backed by the U.S., and later against South Vietnam, which it regarded as a U.S. puppet state. The U.S. government viewed involvement in the war as a way to prevent a communist takeover of South Vietnam as part of their wider strategy of containment.