In 1942 he commanded the 8th Army in the Western Desert, where his victory at El Alamein proved the first significant Allied success in World War II. He was later given command of the Allied ground forces in the invasion of Normandy in 1944 and accepted the German surrender on 7 May 1945.