The US government acted against Cuba due to Castro's actions endangering the Western world and his alignment with the Soviet Union.
The US government took action against Cuba primarily because Castro supported actions that put the Western world in danger. The concern escalated as Castro's alliance with the Soviet Union threatened US interests, leading to economic sanctions and strained relations.
https://brainly.com/question/9668317