On October 27, after much deliberation between the Soviet Union and
Kennedy's cabinet, Kennedy secretly agreed to remove all missiles set in
southern Italy and in Turkey, the latter on the border of the Soviet
Union, in exchange for Khrushchev removing all missiles in Cuba.
There is some dispute as to whether removing the missiles from Italy
was part of the secret agreement, although Khrushchev wrote in his
memoirs that it was; nevertheless, when the crisis had ended McNamara
gave the order to dismantle the missiles in both Italy and Turkey.