In September 1959, Ivanov became the chief of the Soviet Army's Main Operations Directorate and a deputy to the Army's chief of general staff, Marshal Vasily Sokolovsky. In that role, he was involved in Operation Anadyr and the Cuban Missile Crisis. During the latter, he stayed in the Kremlin and assisted the Soviet leader, Nikita Khrushchev.