The First Battle of El Alamein (1–27 July 1942) was a battle of the Western Desert campaign of World War II, fought in Egypt between Axis (German and Italian) forces of the Panzer Army Africa—which included the Afrika Korps under Field Marshal Erwin Rommel—and Allied (British Empire and Commonwealth) forces of the Eighth Army under General Claude Auchinleck.
In this battle the British halted a second advance by the Axis forces into Egypt. Axis positions near El Alamein, only 106 km (66 mi) from Alexandria, were dangerously close to the ports and cities of Egypt, the base facilities of the Commonwealth forces and the Suez Canal.