The US government took action against Cuba due to Castro's support of actions endangering the Western world.
The US government took action against Cuba primarily because Castro supported actions that put the Western world in danger. After ousting Fulgencio Batista, Castro's close ties with the Soviet Union and his revolutionary and socialist policies alarmed US officials, leading to tensions. The fear of Communism spreading in the Western hemisphere and Castro aiding in the invasion jeopardized US interests and national security, leading to a strained relationship.
https://brainly.com/question/9668317