The 26th of July Movement, led by Fidel Castro, seized power in Cuba on 1 January 1959, overthrowing Fulgencio Batista's pro-US government. Castro nationalized Cuba's fruit resources, driving the United Fruit Company out, and his purchase of oil from the USSR led to a deterioration of relations with the US, leading to the failed 1961 Bay of Pigs Invasion by Cuban exiles, and in 1962 the Cuban Missile Crisis almost sparked . Castro's revolution was only the first of its kind in Hispanic America. Leftist governments rose to power across the region, so the United States resorted to backing coups, such as the 1954 overthrow of the popular Jacobo Arbenz Guzman in Guatemala and the ouster of Juan Bosch in 1965 in the Dominican Republic, the latter of which led to the Dominican Civil War and the US occupation of the republic that year. The United States supported coups that installed dictators in Chile, Uruguay, and other countries, and they set up the School of the Americas to train future dictators like Leopoldo Galtieri of Argentina and Manuel Noriega of Panama. Some dictators' rules led to civil wars, such as the Nicaraguan Civil War, Salvadoran Civil War, and Guatemalan Civil War in the 1970s-1990s, and the United States backed governments that used death squads to massacre villagers and priests accused of siding with leftists. These civil wars would end with the end of the Cold War, resulting in the communist guerrillas becoming legal political parties, and many of them would proceed to rule over the country, such as the Sandinistas of Nicaragua and FMLN of El Salvador.