Castillo Armas had encountered the CIA in January 1950, when a CIA officer learned he was attempting to get weapons from Anastasio Somoza García and Rafael Trujillo, the right-wing authoritarian rulers of Nicaragua and the Dominican Republic, respectively.