Castro became worried that the USA might launch another invasion. So he made an alliance with the USSR.The soviets bought sugar off Cuba so that Cuba didnt have to trade with Kennedy. Also Khruschev put a nuclear weapons site in Cuba, this meant that they were now within range of the US therefore giving them an advantage in the arms race.