The US government took action against Cuba due to Castro's actions endangering the Western world.
The US government was taking action against Cuba primarily because Castro's actions were putting the Western world in danger. Castro's alliance with the Soviet Union through trade and military support raised concerns in the US government about the spread of Communism in the Western Hemisphere. This led to diplomatic tensions, sanctions, and ultimately strained relations between the US and Cuba.
https://brainly.com/question/9668317