The US government acted against Cuba due to Castro's involvement in an invasion of the hemisphere, his Communist leanings, and support from the Soviet Union.
The United States took action against Cuba primarily because Castro aided and abetted an invasion of the Western Hemisphere, which was seen as a threat to national security during a time of economic progress and social reform efforts in the region. Castro's shift towards Communist ideologies and support from the Soviet Union further escalated tensions with the U.S., resulting in trade barriers and diplomatic strains.
https://brainly.com/question/42429217