Fidel Castro overthrew the corrupt dictator Fulgencio Batista in the Cuban Revolution and installed a communist government. He nationalized private property, collectivized farms, increased education and healthcare, but also eliminated elections and disregarded human rights. This alienated the middle class. The U.S. tried to overthrow Castro through the failed Bay of Pigs invasion and imposed an embargo on Cuba, leading to economic hardship. Many Cubans fled the country by boat as refugees.