Answer:
The Cuban Missile Crisis was a confrontation between the Soviet Union and Cuba on the one hand and the United States on the other in October 1962.
Previously, the US government had tried unsuccessfully to overthrow Fidel Castro's government in Cuba. Cuba and the Soviet Union hastily set up bases in Cuba for nuclear missiles that would cover most of the continental United States. It was also a reaction to the deployment of Thor-type missiles in Britain in 1958 and the deployment of Jupiter-type missiles in Italy and Turkey in 1961, leaving Moscow within the range of more than 100 US nuclear missiles. On October 15, 1962, a U.S. Air Force reconnaissance aircraft U-2 captured Soviet missile bases under construction in Cuba.
The ensuing crisis was one of the greatest confrontations of the Cold War, comparable to the blockade of Berlin. It is generally believed that the Cold War came closest to the threat of direct nuclear war. It was also the first documented case in which the possibility of mutual destruction was considered a determining factor in international armaments negotiations.
On October 28, an agreement was announced, by which the installation of missiles in Cuba would stop, while already installed missiles would return to the Soviet Union. In return, Kennedy pledged that the United States would not invade Cuba, while secretly accepting the removal of US missiles on Turkish soil.
In the American political sphere, President Kennedy had positive and negative consequences: for public opinion, his handling of the crisis was viewed in an acceptable way, and the population appreciated his measures to avoid nuclear war; for the high military commanders, their actions, on the other hand, were viewed in a negative way, as it was under Soviet pressure and did not eliminate the Cuban threat.