Complex sentence: U.S. foreign policy during the Cold War was built around the containment of Communism, and the country participated in the wars in Korea and Vietnam to achieve this goal.
Split into simpler sentences: U.S. foreign policy during the Cold War was built around the containment of Communism. The U.S. became involved in wars in Korea and Vietnam, ostensibly to achieve this goal.