In October 1962, American U-2 reconnaissance flights discovered Soviet nuclear-capable medium-range ballistic missiles being installed in Cuba, roughly 90 miles from the Florida coast — a deployment the Soviet Union had undertaken partly in response to American Jupiter missiles already stationed in Turkey, within striking range of Soviet territory. President John F. Kennedy convened a small group of advisors, later known as ExComm, and after intense internal debate between more aggressive military options (including airstrikes and full invasion) and more measured alternatives, chose a naval quarantine of Cuba, publicly demanding the missiles' removal while privately, through back-channel diplomacy, offering to remove the Turkish missiles as part of an eventual resolution.
The crisis included several documented moments where events could have escalated to direct military conflict, and quite plausibly nuclear war. On October 27, an American U-2 was shot down over Cuba by a Soviet surface-to-air missile, killing the pilot — an act many of Kennedy's advisors argued demanded immediate retaliation. That same day, American naval forces enforcing the quarantine dropped practice depth charges near a Soviet submarine, B-59, which was carrying a nuclear-tipped torpedo and had lost contact with Moscow for days; the submarine's captain and political officer both believed war might already have started and wanted to launch the nuclear torpedo, a decision requiring unanimous agreement from three senior officers aboard — second-in-command Vasily Arkhipov alone refused to authorize the launch, a decision widely credited by historians with averting what could have become the opening exchange of a nuclear war. The crisis was resolved on October 28 when Khrushchev agreed to remove the missiles in exchange for Kennedy's public non-invasion pledge and the quietly negotiated, initially secret removal of the Turkish missiles.