In WWII, he commanded the German Army in North Africa during the North African Campaign (1940-1943) in a long struggle against the British 8th Army. He was finally defeated at El Alamein. Later in the war, he commanded the German forces defending the French coast against the Allied Normandy invasion (1944).