The confrontation ended on October 28 , 1962 , when Kennedy and United Nations Secretary-General U Thant reached an agreement with Khrushchev .
The crisis ended two weeks later on October 28 , 1962 , when the President of the United States John F. Kennedy and the United Nations Secretary-General U Thant reached an agreement with the Soviets to destroy the missiles in Cuba in exchange for a no-invasion agreement .