AFHQ was established in the United Kingdom on 14 August 1942 under Lieutenant General Dwight David Eisenhower in order to command the forces committed to Operation Torch, the Allied invasion of French North Africa, set for November. Eisenhower had the title Commander-in-Chief, Allied Expeditionary Force. Shortly after the establishment of the headquarters, "Expeditionary" was deleted from its title, for reasons of operational security. Eisenhower thus became Commander-in-Chief, Allied Force. The HQ was moved to Gibraltar on 5 November 1942, and then on to Algiers on 28 November 1942.