The Western Desert campaign (the Desert War), took place in the deserts of Egypt and Libya and was the main theatre in the North African campaign of the Second World War. Military operations began in June 1940 with the Italian declaration of war and the Italian invasion of Egypt in September. Operation Compass, a British five-day raid in December 1940, led to the destruction of the Italian 10th Army. Benito Mussolini sought help from Adolf Hitler, who sent a small German force to Tripoli under Directive 22 (11 January). The Afrika Korps (Generalleutnant Erwin Rommel) was formally under Italian command as Italy was the main Axis power in the Mediterranean and North Africa.
In the spring of 1941, Rommel led Operation Sonnenblume which pushed the British back to Egypt except for the Siege of Tobruk at the port. At the end of 1941 the Axis forces were defeated in Operation Crusader and retired again to El Agheila. In early 1942 Axis forces drove the British back again, then captured Tobruk after the Battle of Gazala but failed to destroy their opponents. The Axis invaded Egypt and the British retreated to El Alamein, where the Eighth Army fought two defensive battles then defeated the Axis forces in the Second Battle of El Alamein in October 1942. The Eighth Army drove the Axis forces out of Libya to Tunisia which was invaded from the west by the Allied First Army in Operation Torch. In the Tunisian campaign the remaining Axis forces surrendered to the combined Allied forces in May 1943.
The Western Desert Force (renamed Cyrcom and later the Eighth Army) was depleted in early 1941 to send units to Greece, rather than complete the conquest of Libya, just as German troops and Italian reinforcements reached Libya. British Commonwealth and Empire troops released after the conclusion of the East Africa Campaign were sent to Egypt and by the summer, the surviving Commonwealth troops had returned from Greece, Crete and Syria. From the latter part of 1941 increasing amounts of equipment and personnel, including US supplies and tanks, arrived for the Eighth Army. On the other hand the Axis never overcame the supply constraints limiting the size of their land and air forces in North Africa, and the desert war became a sideshow for Germany when the intended quick conclusion of Operation Barbarossa, the invasion of the Soviet Union, was not achieved.
Cyrenaica (Libya) had been an Italian colony since the Italo-Turkish War (1911-1912). With Tunisia, a part of French North Africa to the west and Egypt to the east, the Italians prepared to defend both frontiers through a North Africa Supreme Headquarters, under the command of the Governor-General of Italian Libya, Marshal of the Air Force, Italo Balbo. Supreme Headquarters had the 5th Army (General Italo Gariboldi) and the 10th Army (General Mario Berti) which in mid-1940 had nine metropolitan divisions of about each, three Blackshirt and two Libyan divisions with each. Italian army divisions had been reorganised in the late 1930s, from three regiments each to two and reservists were recalled in 1939, along with the usual call-up of conscripts.
Morale was considered to be high and the army had recent experience of military operations. The Italian navy had prospered under the Fascist regime, which had paid for fast, well-built and well-armed ships and a large submarine fleet but the navy lacked experience and training. The air force had been ready for war in 1936 but had stagnated by 1939 and was not considered by the British to be capable of maintaining a high rate of operations. The 5th Army with eight divisions was based in Tripolitania, the western half of Libya opposite Tunisia and the 10th Army with six infantry divisions, held Cyrenaica in the east. When war was declared, the 10th Army deployed the 1st Libyan Division Sibelle on the frontier from Giarabub to Sidi Omar and XXI Corps from Sidi Omar to the coast, Bardia and Tobruk. The XXII Corps moved south-west of Tobruk, to act as a counter-attack force.
The British had based forces in Egypt since 1882 but these were greatly reduced by the terms of the Anglo-Egyptian Treaty of 1936. The small British and Commonwealth force garrisoned the Suez Canal and the Red Sea route. The canal was vital to British communications with its Far Eastern and Indian Ocean territories. In mid-1939, Lieutenant-General Archibald Wavell was appointed General Officer Commanding-in-Chief (GOC-in-C) of the new Middle East Command, over the Mediterranean and Middle East theatres. Until the Franco-Axis armistice, the French divisions in Tunisia faced the Italian 5th Army on the western Libyan border. In Libya, the Royal Army had about 215,000 men and in Egypt, the British had about with another training in Palestine.
British forces included the Mobile Division (Egypt) (Major-General Percy Hobart), one of only two British armoured training formations, which in mid-1939 was renamed Armoured Division (Egypt) (on 16 February 1940, it became the 7th Armoured Division). The Egypt-Libya border was defended by the Egyptian Frontier Force and in June 1940, the headquarters of the 6th Infantry Division (Major-General Richard O'Connor) took over command in the Western Desert, with instructions to drive back the Italians from their frontier posts and dominate the hinterland if war began. The 7th Armoured Division less the 7th Armoured Brigade, assembled at Mersa Matruh and sent the 7th Support Group forward towards the frontier as a covering force, where the RAF also moved most of its bombers; Malta was also reinforced.
The HQ of the 6th Infantry Division, which lacked complete and fully trained units, was renamed the Western Desert Force on 17 June. In Tunisia, the French had eight divisions, capable only of limited operations and in Syria were three poorly armed and trained divisions, about and border guards, on occupation duties against the civilian population. Italian land and air forces in Libya greatly outnumbered the British in Egypt but suffered from poor morale and were handicapped by some inferior equipment. In Italian East Africa were another and African troops with tanks and Italy declared war from 11 June 1940.
The war was fought primarily in the area known as the Western Desert, which was about 240 mi (390 km) wide, from Mersa Matruh in Egypt to Gazala on the Libyan coast, along Litoranea Balbo (Via Balbia), the only paved road. The Sand Sea, 150 mi (240 km) inland, marked the southern limit of the desert at its widest points at Giarabub and Siwa. In British parlance, the term "Western Desert" applied to the desert of Egypt west of the Nile but came to describe the whole area of conflict, including eastern Cyrenaica in Libya. From the coast, extending inland lies a raised, flat plain of stony desert about 150 metres (500 ft) above sea level, that runs south for 120-190 miles (200-300 km) to the coast to the edge of the Sand Sea. Scorpions, vipers and flies abounded in the region, which was inhabited by a small number of Bedouin nomads.
Bedouin tracks linked wells and the easier traversed ground; navigation was by sun, star, compass and "desert sense", good perception of the environment gained by experience. When Italian troops advanced into Egypt in September 1940, the Maletti Group got lost leaving Sidi Omar, disappeared and had to be found by aircraft. In spring and summer, days are miserably hot and nights very cold. The Sirocco (Gibleh or Ghibli), a hot desert wind, blows clouds of fine sand, which reduces visibility to a few metres and coats eyes, lungs, machinery, food and equipment; motor vehicles and aircraft need special oil filters and the barren ground means that supplies for military operations have to be transported from outside. German engines tended to overheat and tank engine life fell from 1,400-1,600 mi (2,300-2,600 km) to 300-900 mi (480-1,450 km), made worse by the lack of standard spare parts for German and Italian types of motor.
The normal route for Italian supply deliveries to Libya went about 600 mi (970 km) west round Sicily and then close to the coast of Tunisia to the port of Tripoli, to avoid interference from British aircraft, ships and submarines based at Malta. In Africa, supplies had to be carried huge distances by road or in small consignments by coaster. The distance from Tripoli to Benghazi was about 650 mi (1,050 km) and to El Alamein was 1,400 mi (2,300 km). A third of the Italian merchant marine was interned after Italy declared war and by September 1942, half of the remainder had been sunk, although much of this was replaced by new building, salvage and transfers of German ships. From June 1940 to May 1943, of shipments were sunk.
Tobruk was pressed into use in June 1942 but the long approach route and Allied bombing led the effort to be abandoned in August. The German army assumed that the maximum distance a motorised army could operate from its base was 200 mi (320 km) but about an average of a third of Axis lorries were unserviceable and of the fuel delivered was consumed moving the remainder to the front. Fuel oil shortages in Italy, the small size of the ports in Libya and the need to meet civilian demand, meant the inefficient dispatch of large numbers of small convoys. Oberkommando des Heeres (OKH, German army high command) concluded that German forces in Libya could not be supplied sufficiently for a decisive offensive, unless Italian forces were withdrawn to Italy, which was a politically impossible condition.
The geographical position of Italy made it possible that the Mediterranean could be closed if war came and make the Mediterranean Fleet based in Egypt dependent on the Suez Canal. In 1939, Wavell began to plan a base in the Middle East, to support about fifteen divisions (300,000 men), six in Egypt and three in Palestine and the rest further afield. Much of the material was imported from the colonies and the rest obtained locally by stimulating the production of import substitutes. The plan for a garrison of nine divisions in Egypt and Palestine, was increased to fourteen by June 1941 and then to 1942. From the Italian declaration of war in 1940 to 1943, merchant ships travelled east from Britain round the Cape of Good Hope, which made the distance to Egypt the same as that to Australia and New Zealand. The Middle East Supply Centre (MESC) was created in Egypt, Palestine and Syria, to co-ordinate imports and local substitutes for civilian rationing and to promote agricultural improvements. By March 1943 the MESC had replaced Liberty Ship deliveries worth of imports with increased local production of potatoes, cooking oil, dairy products and fish; cattle drives from Sudan obviated the need for refrigerated shipping.
In 1940, British military forces had the terminus of the Egyptian state railway, road and the port of Mersa Matruh (Matruh) 200 mi (320 km) west of Alexandria, as a base. A water pipeline was begun along the railway and sources of water surveyed. Wells were dug but most filled with salt water and in 1939 the main sources of fresh water were Roman aqueducts at Mersa Matruh and Maaten Baggush. Water-boats from Alexandria and a distillation plant at Matruh increased supply but rigorous economy had to be enforced and much water had to be moved overland to outlying areas. The number of vehicles available in 1939 was inadequate and lorries were diverted to provide the Armoured Division with a better rear link; only the desert-worthy vehicles could be risked off-road, which left tanks unable to move far from Matruh. Matruh was 120 mi (190 km) east of the Libyan border. From the border, there was no water at Sollum, for 50 mi (80 km) east of Sollum to Sidi Barrani, there was only a poor road, which meant that an invader would have to move through a waterless and trackless desert to reach the main British force. In September 1940, the New Zealand Railway Battalion and Indian labourers began work on the coastal railway, which reached Sidi Barrani by October 1941 and Tobruk by December 1942, 400 mi (640 km) west of El Alamein, carrying 4,200 long tons (4,267 t) per day.
On 11 June 1940, hostilities commenced and the British were ordered to dominate the frontier and isolate Giarabub. The British crossed into Libya that night, exchanged fire with Italian troops at Sidi Omar and discovered that some Italians were unaware that war had been declared. On 14 June, the British captured Fort Capuzzo and Fort Maddalena, taking Two days later, the British raided a convoy on the Tobruk-Bardia road, killed troops and took including Generale di Brigata Romolo Lastrucci, the 10th Army Chief Engineer. At an engagement near the frontier wire at Nezuet Ghirba, an Italian force of four guns and was defeated by a mixed force of British tanks, artillery and motorised infantry.
The British patrolled the frontier area as far west as Tobruk, establishing dominance over the 10th Army. On 5 August, thirty Italian tanks and the 8th Hussars fought an inconclusive action and Wavell concluded that vehicle wear made it impractical to continue operations when an Italian offensive loomed. Sand wore out equipment quickly, shortening the track life of tanks, spare parts ran out and only half the tank strength could be kept operational. A lull fell from August-early September, as Operation Hats a naval operation, reinforced the Mediterranean Fleet and helped to bring an army convoy of tanks and crews via the Cape. The British claimed to have inflicted for a loss of from  Further afield, both sides established scouting groups, the Long Range Desert Group (LRDG) and Auto-Saharan Company (Compagnie Auto-Avio-Sahariane) which ranged the desert, observed enemy dispositions and raided.
Benito Mussolini had no plans to invade Egypt, intending to remain on the defensive in Libya if war came. After the fall of France in 1940, the 5th Army could send reinforcements east and on 7 August, Mussolini ordered an invasion, to occupy Egypt and establish a land connexion with Italian East Africa. In August a lull fell on the frontier, most of the British armoured units had been withdrawn from the frontier to Mersa Matruh, to conserve their ability to defend the port and the 7th Support Group took over, to establish observation posts from Sollum to Fort Maddalena, ready to delay an Italian offensive; Hussars reconnoitred further into Libya. The Libyan divisions lacked the transport necessary to operate with the Maletti Group, which had a medium, two mixed and four light tank battalions, on the escarpment and were redeployed to the coast road. On 9 September, the Maletti Group got lost en route to Sidi Omar and Graziani cancelled a flanking move and concentrated on the coast road, with five divisions and the Maletti Group; the 4th Blackshirt and 64th Catanzaro divisions stayed in reserve at Tobruk. The 5th Squadra a mixed air unit with about aircraft, airfield equipment and transport, stood by to support the advance and occupy airfields.
The Italian invasion of Egypt began as a limited tactical operation towards Mersa Matruh, rather than for the strategic objectives sketched in Rome, due to the chronic lack of transport, fuel and wireless equipment, even with transfers from the 5th Army. Musiad was subjected to a "spectacular" artillery bombardment at dawn and occupied.Sollum and the airfield were taken by the 1st Libyan Division and by evening the 2nd Libyan, 63rd (Cyrene) divisions and the Maletti Group from Musaid and the 62nd (Marmarica) Division from Sidi Omar, pushed past British harassing parties and converged on Halfaya Pass. The British withdrew past Buq Buq on 14 September and continued to harass the Italian advance, while falling back to Alam Hamid the next day and Alam el Dab on 16 September. An Italian force of fifty tanks attempted a flanking move, which led the British rearguard to retire east of Sidi Barrani, which was occupied by the 1st Blackshirt Division and Graziani halted the advance. The British resumed observation and the 7th Armoured Division prepared to challenge an attack on Mersa Matruh.
Despite prodding from Mussolini, the Italians dug in around Sidi Barrani and Sofafi, about 80 mi (130 km) west of the British defences at Mersa Matruh. British road demolitions were repaired, wells cleaned and work commenced on a water pipe-line from the frontier, to accumulate supplies for the resumption of the advance in mid-December. Egypt broke off diplomatic relations with the Axis and Italian aircraft bombed Cairo on 19 October. British naval and air operations to harass the Italian army continued and caused damage which prisoners reported had lowered morale. Armoured car patrols dominated no man's land but the loss of advanced landing grounds reduced the effectiveness of the RAF and Malta was put out of range. Operation Compass, a British counter-attack on an Italian advance on Matruh was planned to destroy the Italian force and most of the WDF was moved up to the port. An extra armoured car company joined in the reconnaissance operations far behind the front line. The WDF had been reinforced by a new tank regiment with Matilda II tanks and after a month, the British began to prepare a raid on the central group of Italian encampments and then on Sofafi of 4-5 days' duration, rather than wait for the Italians.
In December 1940, the 10th Army in Egypt had been reinforced with the 1st and 2nd Libyan divisions and 4th Blackshirt Division, in the fortified camps from Sidi Barrani to the Tummars and Maktila. The Maletti Group was based at Nibeiwa, the 63rd (Cyrene) Division at Rabia and Sofafi, the 62nd (Marmarica) Division was on the escarpment from Sofafi to Halfaya Pass and the 64th (Catanzaro) Division was east of Buq Buq, behind the Nibeiwa-Rabia gap, supported by about of the 5° Squada (General Felip Porro). The RAF attacked airfields on 7 December and destroyed on the ground. A British raid, Operation Compass (Battle of Marmarica/Battle of the Camps), began when Selby Force advanced from Matruh to isolate Maktila early on 9 December. The 4th Indian Division and the 7th Royal Tank Regiment (7th RTR) attacked Nibeiwa at dawn and overran the camp, then moved on Tummar West, which fell in the afternoon. A counter-attack from Tummar East was repulsed and the camp taken the next day.
A 7th Armoured Division screen to the west prevented the reinforcement of Sidi Barrani and on 10 December, the British cut the coast road and the 7th Armoured Division mopped up around Buq Buq, taking many prisoners. On 11 December, the Italians were defeated at Sidi Barrani; Rabia and Sofafi were abandoned and the 7th Armoured Division pursued along the coast and the escarpment. Late on 14 December, the 11th Hussars cut the Via Balbia between Tobruk and Bardia, captured Sidi Omar on 16 December and forced the Italians to retreat from Sollum and Fort Capuzzo to Bardia, leaving garrisons at Siwa Oasis and Giarabub in the south. From the British had taken and about for 
Bardia fell between 14 December and 5 January 1941; the British lost infantry casualties and for casualties and prisoners, more than and hundreds of lorries. At dawn on 21 January, Australian infantry broke into Tobruk and made a path for The Australians pressed on and captured half of the Tobruk defences by nightfall. The Australians took and for a loss of and troops. The 7th Armoured Division drove 100 mi (160 km) towards Derna and the Special Armoured Brigade (BCS - Brigata Corazzata Speciale, General Valentino Babini) with about at Mechili. The BCS slipped away and from the British tanks bogged down in heavy rain; Derna was abandoned next day. The 7th Armoured Division sent Combe Force, a flying column, to Beda Fomm and cut off the 10th Army.
In late January, the British learned that the Italians were evacuating Cyrenaica along the Via Balbia from Benghazi. The 7th Armoured Division (Major-General Sir Michael O'Moore Creagh) was dispatched to intercept the remnants of the 10th Army by moving through the desert, south of the Jebel Akhdar via Msus and Antelat as the 6th Australian Division pursued the Italians along the coast road north of the Jebel Akhdar. The terrain was hard going for the British tanks and Combe Force (Lieutenant-Colonel J. F. B. Combe), a flying column of wheeled vehicles, was sent ahead across the chord of the jebel.
Late on 5 February, Combe Force arrived at the Via Balbia south of Benghazi and set up road blocks near Sidi Saleh, about 20 mi (32 km) north of Ajedabia and 30 mi (48 km) south-west of Antelat. The leading elements of the 10th Army arrived thirty minutes later and found the Via Balbia blocked. Next day the Italians attacked to break through the roadblock and continued to attack into 7 February. With British reinforcements arriving and the Australians pressing down the road from Benghazi, the 10th Army surrendered. From Benghazi-Agedabia, the British took captured and of the totals for Operation Compass of and 
On 9 February, Churchill ordered the advance to stop and troops to be dispatched to Greece to take part in the Greco-Italian War; Operation Marita, a German attack through Macedonia was thought imminent. The British were unable to continue beyond El Agheila anyway, because of vehicle breakdowns, exhaustion and the effect of the much longer supply transport distance from the base in Egypt. A few thousand men of the 10th Army escaped the disaster in Cyrenaica but the 5th Army in Tripolitania had four divisions. The Sirte, Tmed Hassan and Buerat strongholds were reinforced from Italy, which brought the 10th and 5th Armies up to about German reinforcements were sent to Libya to form a blocking detachment (Sperrverband) under Directive 22 (11 January), these being the first units of the Afrika Korps (Generalleutnant Erwin Rommel).
A week after the Italian surrender at Beda Fomm, the Defence Committee in London, ordered Cyrenaica to be held with the minimum of forces and the surplus sent to Greece. In the Western Desert Force (now XIII Corps), the 6th Australian Division was fully equipped and had few losses to replace. The 7th Armoured Division had been operating for eight months, had worn out its mechanical equipment and was withdrawn to refit. Two regiments of the 2nd Armoured Division with the WDF were also worn out, leaving the division with only four tank regiments. The 6th Australian Division went to Greece in March, with an armoured brigade group of the 2nd Armoured Division; the remainder of the division and the new 9th Australian Division, minus two brigades and most of its transport was sent to Greece, it was replaced by two under-equipped brigades of the 7th Australian Division. The division took over in Cyrenaica, on the assumption that the Italians could not begin a counter-offensive until May, even with German reinforcements.[a]
In early 1941, after the big British and Commonwealth victory in Cyrenaica, the military position was soon reversed. The best-equipped units in XIII Corps went to Greece as part of Operation Lustre in the Battle of Greece. Adolf Hitler responded to the Italian disaster with Directive 22 (11 January) ordering Unternehmen Sonnenblume (Operation Sunflower), the deployment of a new Afrika Korps (DAK) to Libya, as a Sperrverband (barrier detachment). The DAK had fresh troops with better tanks, equipment and air support and was led by General Erwin Rommel, who had enjoyed great success in the Battle of France. The Axis force raided and quickly defeated the British at El Agheila on 24 March and at Mersa el Brega on 31 March, exploited the success and by 15 April, had pushed the British back to the border at Sollum and besieged Tobruk. The new commander of XIII Corps (now HQ Cyrenaica Command) Lieutenant-General Philip Neame, O'Connor and Major-General Michael Gambier-Parry, commander of the 2nd Armoured Division were captured. The Western Desert Force HQ took over under Lieutenant-General Noel Beresford-Peirse, who was recalled from East Africa. Apart from an armoured brigade group of the 2nd Armoured Division, which had been withdrawn for the Greek campaign, the rest of the division had been destroyed. Several Axis attempts to seize Tobruk failed and the front line settled on the Egyptian border.
Tobruk was defended by a force of some Army troops, well stocked with supplies and linked to Egypt by the Royal Navy. The garrison had armoured cars and captured Italian tanks, which could raid Axis supply convoys as they passed Tobruk for the frontier, which made it impossible for the Axis to invade Egypt. Rommel immediately attempted to take the port, but the 9th Australian division (General Leslie Morshead), defended the port resolutely. The Italians were slow to provide blueprints for the port fortifications and several attacks were repulsed. After three weeks Rommel suspended the attacks and resumed the siege. Italian infantry divisions took up positions about the fortress while the bulk of the Afrika Korps maintained a mobile position south and east of the port.
Operation Brevity was a limited offensive, to inflict attrition on the Axis forces and to secure positions for a general offensive towards Tobruk. The British attacked with a small tank-infantry force in three columns, Desert, Centre and Coast. Desert Column with the British cruiser tanks, was to advance inland and destroy tanks found en route to Sidi Aziz. Centre Column was to capture the top of the Halfaya Pass, Bir Wair and Musaid, then press on to Fort Capuzzo. Coast Column was to take Sollum and the foot of Halfaya Pass. Sollum, Halfaya Pass and Fort Capuzzo were captured but then the fort was lost to a counter-attack. A German counter-attack on 16 May threatened the force at the top of the pass and a retirement was ordered covered by Desert Column. The Germans recovered Musaid and a general British retirement began to a line from Sidi Omar to Sidi Suleiman and Sollum, which left only Halfaya Pass in British possession. Brevity failed to achieve most of its objectives, only briefly holding the Halfaya Pass. The British lost five tanks destroyed and German casualties were three tanks destroyed and several damaged. Italian casualties were whom captured. On 12 May, the Tiger convoy lost one ship and arrived in Alexandria with 238 tanks, to re-equip the 7th Armoured Division and 43 aircraft; on 28 May, planning began for Operation Battleaxe.
During the evening of 26 May, Kampfgruppe von Herff (Oberst Maximilian von Herff), comprising three panzer battalions, assembled on the coast at the foot of Halfaya Pass and attacked the next morning, intending to bluff the British into retiring. The pass was defended by the 3rd Coldstream Guards (Lieutenant-Colonel Moubray) and supporting units but the bluff became a genuine attack and secured a commanding position, leaving the British in danger of being surrounded. Gott authorised a withdrawal and Moubray extricated the battalion. There were no reinforcements nearby and Gott ordered a withdrawal from the pass, which was re-occupied by the Axis. The Italo-German positions on the frontier were fortified with barbed wire and minefields, covered by 50 mm and 88 mm anti-tank guns. Behind the new defences the Axis began to accumulate supplies and receive the 15th Panzer Division, which began to arrive on 20 May.
Operation Battleaxe, , was intended to lift the Siege of Tobruk and re-capture eastern Cyrenaica. The attack was to be conducted by the 7th Armoured Division and a composite infantry force based on the 4th Indian Division headquarters, with two brigades. The infantry were to attack in the area of Bardia, Sollum, Halfaya and Capuzzo, with the tanks guarding the southern flank. For the first time in the war, a large German force fought on the defensive. The Halfaya Pass attack failed, Point 206 was captured and only one of three attacks on Hafid Ridge had any success. At the end of 15 June, tanks remained operational. On 16 June, a German counter-attack forced back the British on the western flank but was repulsed in the centre but the British were reduced to Cruiser tanks and seventeen Infantry tanks.
On 17 June, the British only just evaded encirclement by two Panzer regiments and ended the operation. Despite British overextension, the Germans had failed to turn a defensive success into an annihilating victory. Intelligence had provided details of British moves but the RAF had seen German counter-moves and slowed them enough to help the ground forces escape. The British had and were knocked out or broke down and were not recovered and the RAF lost German losses were (Italian losses are unknown), twelve tanks and ten aircraft. The British failure led to the sacking of Wavell, the XIII Corps commander, Lieutenant-General Noel Beresford-Peirse and Creagh, the 7th Armoured Division commander; General Claude Auchinleck took over as Commander-in-Chief of the Middle East Command. In September, the Western Desert Force was renamed Eighth Army.
The Eighth Army (Lieutenant-General Alan Cunningham) conducted Operation Crusader to relieve Tobruk and capture eastern Cyrenaica. The Eighth Army planned to destroy the Axis armour before committing the infantry but was repulsed several times, culminating in the defeat of the 7th Armoured Division by the Afrika Korps at Sidi Rezegh. Rommel ordered the panzer divisions to relieve the Axis positions on the Egyptian border but failed to find the main body of the Allied infantry, which had bypassed the fortresses and headed for Tobruk. Rommel withdrew his armour from the frontier towards Tobruk and achieved several tactical successes, which led Auchinleck to replace Cunningham with Major-General Neil Ritchie. The Axis forces then retired west of Tobruk to the Gazala Line and then back to El Agheila; the Axis garrisons at Bardia and Sollum surrendered. The British lost against casualties, many having been captured at Halfaya and Bardia. Tobruk had been relieved, Cyrenaica recaptured and airfields captured to cover convoys supplying Malta.
The Eighth Army advance of 500 mi (800 km) to El Agheila transferred the burden of an over-stretched supply line to the British. In January 1942, the British withdrew forces from the front to reduce the supply burden, preparatory to Operation Acrobat, a 1941 plan for a westwards advance against Tripolitania. (Vichy authorities on Tunisia were pressed to allow the British, then Anglo-American troops after December 1941, into French North Africa with the possibility of invading Sicily.) The British overestimated Axis losses during Operation Crusader and assumed that they faced rather than the true total of , and also misjudged the speed of Axis reinforcement from Europe. The Eighth Army expected to be ready by February, well before an Axis attack. The new 1st Armoured Division held the area around El Agheila and from was engaged near Agedabia and lost about for only seven German tank losses.
Panzerarmee Afrika began Operation Theseus on 21 January and defeated the 2nd Armoured Brigade in detail. By 23 January, the brigade was down from tanks, against a German loss of out of fell on 28 January and Timimi on 3 February. By 6 February, the British were back to the Gazala line, a few miles west of Tobruk, from which the Panzerarmee had retired seven weeks earlier. The British had from 21 January, lost knocked out and another damage or breakdowns and lost forty field guns. Lieutenant-General Alfred Reade Godwin-Austen (XIII Corps) resigned over differences with the Eighth Army commander Neil Ritchie.
By February the front was at the Gazala Line, just west of Tobruk, and during the spring both sides prepared for another battle. The British planned Operation Buckshot for June to destroy the Panzerarmee and re-capture Cyrenaica, but in early May defensive measures on the Egyptian border were given priority, as an Axis attack became imminent.[b]Unternehmen Venezia (the Battle of Gazala, began when Afrika Korps and Italian tanks drove south, round the flank of the Gazala line, and were isolated by Free French and other Allied troops at Bir Hakeim, who intercepted Axis supply convoys.
Rommel retreated to a position abutting the British minefields, and Ritchie ordered a counter-attack, Operation Aberdeen on 5 June. To the north, the 32nd Army Tank Brigade lost  The 7th Armoured and 5th Indian divisions on the eastern flank attacked at and met with disaster, when the British artillery bombardment fell short of the German anti-tank screen. The 22nd Armoured Brigade lost tanks and turned away, leaving the 9th Indian Brigade stranded. An afternoon counter-attack by the Ariete and 21st Panzer divisions and a 15th Panzer Division attack on the Knightsbridge Box overran the tactical HQs of the two British divisions and the 9th Indian Infantry Brigade. The 10th Indian Infantry Brigade and smaller units were dispersed and command broke down. The 9th Indian Brigade, a reconnaissance regiment and four artillery regiments were lost and the British fled from the Gazala Line on 13 June, with only tanks.
Lieutenant-General William Gott, the XIII Corps commander, appointed Major-General Hendrik Klopper, in command of the 2nd South African Division, to conduct the defence of Tobruk. With two South African brigades, were the 201st Guards (Motorised) Brigade, 11th Indian Infantry Brigade, 32nd Army Tank Brigade and the 4th Anti-Aircraft Brigade. Tobruk had been besieged for nine months in 1941 but this time the Royal Navy could not guarantee the supply of the garrison and Auchinleck viewed Tobruk as expendable but expected that it could hold out for two months. On 21 June, troops surrendered to Lieutenant-General Enea Navarrini, the commander of XXI Corps. Auchinleck relieved Ritchie, took over the Eighth Army and stopped the Axis advance at El Alamein, 70 mi (110 km) from Alexandria; after the First Battle of El Alamein Auchinleck was also sacked.
Italian plans to invade Malta by sea began during Second Italo-Abyssinian War (3 October 1935 - May 1936). An opportunity to capture Malta occurred in April 1941 but Operation Mercury (20 May - 1 June 1941), the invasion of Crete was conducted first, with such losses of parachute troops and transport aircraft that a second operation in 1941 was impossible. Luftwaffe units apart from Fliegerkorps X then went east for Operation Barbarossa and by June 1941, the island air defences had recovered. Luftwaffe units returned to the Mediterranean in spring 1942 and managed to neutralise the offensive capacity of the island garrison. In April, Hitler and Mussolini agreed to mount Unternehmen Herkules, an Italian-German air and sea invasion. Two Fliegerkorps with hundreds of Junkers Ju 52 transport aircraft, gliders (including 24 Messerschmitt Me 321 Gigants) and about transport aircraft were assembled for the invasion.
The Italian navy assembled an armada of Marinefährprahm (MFP), converted civilian ships and mine layers and 74 smaller boats. German MFPs, Siebel ferries, Pionierlandungsboote, Sturmboote, large inflatable rafts and the Seeschlange (Sea Snake a portable landing bridge), were contributed by the German navy.[c] Rommel wished to attack, having refitted the force in Libya, to forestall an Eighth Army offensive, which was agreed by Hitler and Mussolini, with the proviso that an advance would stop at Tobruk, ready for the invasion of Malta in August. After the success of Unternehmen Venezia and the capture of Tobruk in June, the advance by the Panzerarmee kept going after the fall of Tobruk. The pursuit of a defeated enemy had more appeal than the hazards of the Malta operation. Herkules was cancelled, in favour of Unternehmen Aïda, an invasion of Egypt to capture the Suez Canal.
Panzerarmee Afrika advanced into Egypt after the victory at Gazala in pursuit of the Eighth Army, which made a defensive stand at Mersa Matruh. The speed of advance of the Panzerarmee enabled it to get behind XIII Corps and X Corps but the Axis forces were too weak to prevent the British from escaping. XIII Corps withdrew on the evening of 27 June but poor communication left X Corps on its own in the fortress of Mersa Matruh. X Corps broke out the following night but left and a great deal of equipment and supplies behind. The Eighth Army continued to retreat eastwards, colliding with Axis forces several times en route. An attempt to regroup at Fuka were abandoned and Auchinleck ordered a 99 mi (160 km) retirement all the way to El Alamein, 62 mi (100 km) west of Alexandria. The retreat brought the Eighth Army close to its base, which made road supply much more efficient and the geographical bottleneck of the Qattara Depression, 40 mi (64 km), to the south made an Axis outflanking move much more difficult. By 25 June, the Afrika Korps was down to and the Italian XX Corps had only tanks. Using supplies captured at Tobruk, on the frontier and Mersa Matruh, the Panzerarmee reached El Alamein on 30 June. Supplying the Axis forces so far east of Gazala became much harder, as most of their supplies still had to be delivered from Tripoli, 1,400 mi (2,300 km) away.
An attempt to drive the Eighth Army out of the Alamein position took place in the First Battle of El Alamein After four days Rommel called off the attempt due to the power of the Eighth Army defence, the depletion of supplies and the reduction of the German divisions to each. By 5 July, the number of serviceable German tanks fell to around thirty. After a lull, the Panzerarmee planned attack again, with about fifty German tanks and about infantry, tanks and , but the Eighth Army attacked first at Tel el Eisa which exhausted both sides. The Eighth Army began to attack Italian units, located using information from Ultra, at Ruweisat Ridge and from again at Tel El Eisa on 22 July and Miteirya Ridge after which another lull fell. German casualties were about Italian casualties are unknown, but prisoners were taken, against Army losses.
Lieutenant-General Bernard Montgomery took command of the Eighth Army in mid-August. Rommel tried to destroy the British and reach Cairo before Allied reinforcements, due in September, made an Axis victory in Africa impossible. Panzerarmee Afrika (PAA) was in a poor state, and the physique of many of the Germans had declined due to the climate and battle exhaustion; troops had been in Africa since March 1941. Reinforcements had brought the four German divisions up to below establishment) and , of which only were fighting troops. PAA had accumulated about tanks and tanks against tanks.
In the Battle of Alam el Halfa/Unternehmen Brandung the Axis sought to envelop the Eighth Army by a march around its southern flank. The British were forewarned by Ultra (decoded German radio messages) and left only patrols in the south. The bulk of the British tanks and guns was concentrated at Alam el Halfa Ridge, which blocked the Axis advance 20 mi (32 km) behind the front. The tanks stayed on the ridge and fought a static defensive engagement, rather than a battle of manoeuvre. Allied aircraft bombed and strafed the Axis troops continuously from which destroyed few tanks but pinned down and denied fast manoeuvre and concentration to the Panzerarmee. Axis attacks on the ridge failed, supplies ran short and Rommel ordered a withdrawal on 2 September. Late on 3 September, a New Zealand and a British brigade counter-attacked to cut off the Axis retreat but Operation Beresford was a costly failure and by 5 September the Axis retreat was complete. The Eighth Army lost and 68 tanks; the Axis lost 60 guns and 
When the Eighth Army offensive began on 23 October, the Panzerarmee had including of whom only front line troops. There were tanks, which were Italian, and guns. The Eighth Army had another workshops, and guns. The Allied troops were well fed and in good health whereas the Axis troops were undernourished and susceptible to illness. The Panzerarmee had only 180 mi (290 km) of fuel per vehicle. By 27 October, the Panzerarmee was down to tanks and by 2 November the Panzerarmee had expended most of its ammunition and had only and tanks left. Rommel decided on a retirement but Hitler ordered the Panzerarmee to stand fast. On 4 November, the Eighth Army broke through the Axis defences and Rommel ordered the retreat to begin, abandoning the non-motorized units, particularly Italian formations, in the centre and south.
Panzerarmee Afrika had suffered of the force, lost and The Eighth Army suffered a far smaller proportion of the force and (only destroyed) and about (mainly anti-tank guns). The Panzerarmee was reduced to about guns and  Attempts to encircle the Axis forces at Marsa Matruh failed and the bulk of the Afrika Korps had escaped by 7 November. The Axis forces retreated along the coast road but lack of tanks and fuel for a mobile defence of the open southern flank, made a stand at the Halfaya Pass or any other position impossible. Tobruk was retaken by the Eighth Army on 13 November and the Axis retreat continued; Benghazi fell on 20 November and the captured ports were quickly repaired to supply the British advance.
Panzerarmee Afrika retired to the El Agheila defences (Mersa Brega line) but Axis supply and reinforcement priority was given to the forces opposing the British First Army (Lieutenant-General Kenneth Anderson) and Operation Torch, leaving the Italo-Germans with no capacity to counter-attack. Hitler ordered the Mersa Brega line to be held at all costs but Rommel favoured a fighting retreat to the Gabès Gap in Tunisia, which would increase the supply distance for the Eighth Army to 1,500 mi (2,400 km). On 24 November, Cavallero agreed to a withdrawal 200 mi (320 km) westwards to Buerat, 50 mi (80 km) beyond Sirte if the Panzerarmee was attacked by a superior force. The Eighth Army reached El Agheila on 15 December and the New Zealand Division was sent to outflank the Mersa Brega line from as the 51st (Highland) Division attacked frontally and the 7th Armoured Division attacked inland at Bir el Auera. The outflanking move failed, when the Panzerarmee retreated, having lost 18 tanks, behind an obstacle course of deep mine-fields and many booby-traps, which slowed the pursuit.
Rommel planned to defend the Gabes Gap in Tunisia east of the French pre-war Mareth line by holding the port of Buerat, while Army Group Africa (Generaloberst Hans-Jürgen von Arnim), already in Tunisia, confronted the British First Army (which included the II US Corps and French troops under command). The front was 400 mi (640 km) from Tobruk, and with such difficulties of supply the Eighth Army was unable to use all its units. Buerat was not strongly defended and despite intelligence of the state of the Axis forces, Montgomery paused until 16 January 1943, when the Eighth Army had a 4:1 superiority in infantry and a 7.5:1 superiority in tanks. Bombing began on 12 January, and XXX Corps attacked on 15 January, picking its way along the coast road through minefields, demolitions and booby-traps. The 2nd New Zealand and 7th Armoured divisions swung inland via Tarhuna, supply being dependent on the Royal Army Service Corps (RASC) and the New Zealand Army Service Corps. The Eighth Army needed to capture the port quickly to avoid a supply shortage. Rommel withdrew from Buerat on 15 January, retired from Tripoli on the night of after destroying the port and then conducted the delaying action into Tunisia. The 7th Armoured Division entered Tripoli on 23 January; the last elements of Panzerarmee reached the Mareth line, another 200 mi (320 km) west, on 15 February, as LRDG patrols surveyed the defences.
The main British attack was made along the coast road by the 51st Division and an armoured brigade as the 7th Armoured Division advanced via Tarhuna, Castel Benito and Tripoli. The 90th Light Division fought delaying actions along the road, which exacerbated an Allied transport shortage. From the 90th Light Division made a stand at Corradini, having made in the road from Buerat to Homs. The vanguard of the 7th Armoured Division reached the vicinity of Aziza on 21 January and next day the 51st Division reached Castel Verde. A race developed and the Germans retired from Tripoli during the night; the 11th Hussars were the first into Tripoli, 675 mi (1,086 km) west of Benghazi, in the morning of 23 January. Five hours later, a Naval Base Party arrived and surveyed the wreckage of the port. On 26 January, five ships anchored outside the port and began to unload via lighters; on 30 January, 3,000 long tons (3,048 t) of stores were landed. In March the Eighth Army entered Tunisia and on 9 March, Rommel returned to Germany to communicate to Hitler the realities of conditions in North Africa. Rommel failed to persuade Hitler to allow the Axis forces be withdrawn and was not allowed to return to Africa, ostensibly on health grounds.
In 1977, Martin van Creveld wrote that it had been claimed by Rommel and others that if the supplies and equipment sent to Tunisia in late 1942 and early 1943 had been sent earlier the Axis would have won the Desert War. Creveld disagreed since the occupation of southern France made French merchant ships and Toulon available for dispatch and Bizerta available for receipt, which did not apply in 1941. The extra distance from Bizerta to the Egyptian border would also have negated the benefit of using a larger port. Axis supply had always been determined by the small size of the ports in Libya, a constraint that could not be overcome and that attacks on Axis shipping added to the chronic difficulty of supply. With the German army bogged down in the USSR, there was never sufficient road transport available for the Afrika Korps and the Panzerarmee, despite the relatively lavish scale of transport compared to other fronts.
The cancellation of the attack on Malta in the summer of 1942 had less influence on events than the small size of Tobruk harbour and its vulnerability to air attack. Only a railway, similar to the one built by the British, could have alleviated Axis supply difficulties but lack of resources and time made building one impossible. The influence of Axis ship losses on the defeats inflicted on the Panzerarmee in late 1942 has been exaggerated, because lack of fuel was caused by the constant difficulty of transporting goods overland, rather than lack of deliveries from Europe. During the Second Battle of El Alamein, of the fuel destined for the Panzerarmee, was stranded at Benghazi. Rommel wrote that Axis supply difficulties relative to those of the British, determined the course of the military campaign and were a constraint that was insoluble.
Axis supplies from Europe to Libya were moved by road and after Operation Compass (December 1940 - February 1941), only Tripoli remained, with a maximum capacity of four troopships or five cargo ships at once, about 45,000 long tons (45,722 t) per month. Tripoli to Benghazi was 600 mi (970 km) along the Via Balbia and only halfway to Alexandria. The road could flood, was vulnerable to the Desert Air Force (DAF) and alternative desert tracks increased vehicle wear. The Axis advance of 300 mi (480 km) to the Egyptian frontier in early 1941, increased the road transport distance to 1,100 mi (1,800 km). Benghazi was captured in April but coastal shipping could only carry 15,000 long tons (15,241 t) and the port was within range of the DAF. Tobruk could take about 1,500 long tons (1,524 t) per day but lack of shipping made its capture irrelevant.
A German motorised division needed 350 long tons (356 t) of supplies per day and moving them 300 mi (480 km) 2.0-tonne (2-long-ton) lorries. With seven Axis divisions, air force and naval units, 70,000 long tons (71,123 t) of supplies per month were needed. Vichy agreed to the use of Bizerta to land supplies but no Axis supplies were landed until late in 1942.)From February-May 1941, a surplus of 45,000 long tons (45,722 t) was delivered; attacks from Malta had some effect but in May, the worst month for ship losses, 91% of supplies arrived. Lack of transport in Libya, left German supplies in Tripoli and the Italians had only for deliveries to their A record amount of supplies arrived in June but at the front, shortages worsened.
There were fewer Axis attacks on Malta from June and sinkings increased from 19% in July, to 25% in September, when Benghazi was bombed and ships diverted to Tripoli; air supply in October made little difference. Deliveries averaged 72,000 long tons (73,155 t) per month from July-October but the consumption of of fuel deliveries by road transport and truck unserviceability of 35% reduced deliveries to the front. In November, a five-ship convoy was sunk during Operation Crusader and ground attacks on road convoys stopped journeys in daylight. Lack of deliveries and the Eighth Army offensive forced a retreat to El Agheila from 4 December, crowding the Via Balbia, where British ambushes destroyed about half of the remaining Axis transport.
Convoys to Tripoli resumed and losses increased but by 16 December, the supply situation had eased, except for the fuel shortage and in December, the Luftwaffe was restricted to one sortie per day. The Vichy French sold 3,600 long tons (3,658 t) of fuel, U-boats were ordered into the Mediterranean and air reinforcements were sent from Russia in December. The Italian navy used warships to carry fuel to Derna and Benghazi and made a maximum effort from Four battleships, three light cruisers and escorted four ships to Libya. The use of an armada for 20,000 long tons (20,321 t) of cargo ships, depleted the navy fuel reserve and only one more battleship convoy was possible. Bizerta in Tunisia was canvassed as an entrepôt but this was in range of RAF aircraft from Malta and was another 500 mi (800 km) west of Tripoli.
The retreat to El Agheila, reduced the distance from Tripoli to 460 mi (740 km), the arrival of the second battleship convoy on 6 January 1942 and the discovery of 13,000 long tons (13,209 t) of fuel at Tripoli, eased the supply crisis, despite the delivery of only 50,000 long tons (50,802 t) of supplies in January. The Panzerarmee had room to manoeuvre, a much shorter supply line against an enemy with the burden of an over-extended supply line. The arrival of Luftflotte II in Sicily had also regained air superiority in the region. Rommel asked for another but this utopian demand was rejected and Rommel was warned that an advance would cause another supply crisis. On 29 January, the Panzerarmee recaptured Benghazi and next day ammunition supply to the front line failed. By 13 February Rommel had agreed to stop at Gazala, 900 mi (1,400 km) from Tripoli.
Until May, monthly deliveries averaged 60,000 long tons (60,963 t), fewer than the smaller Axis force received from June-October 1941 but sufficient for an offensive. The 900 mi (1,400 km) advance to Gazala succeeded because Benghazi was open, reducing the transport distance for about 33% of the supplies of the Panzerarmee to 280 mi (450 km). The Italians tried to restrain Rommel by advocating the capture of Malta, which would postpone another offensive in Africa until the autumn but agreed to an attack on Tobruk for late May. An advance would stop at the Egyptian frontier, another 150 mi (240 km) east and the Luftwaffe would redeploy for Operation Herkules. The capture of Malta would not alter the constraints of port capacity and distance; protecting convoys and a large port close to the front, would still be necessary for a decisive victory.
The capture of Alexandria would make Malta irrelevant but a defensive strategy would be needed while Benghazi was extended, supplies accumulated and substantial reinforcements brought to Libya. More troops would increase the demand for supplies, which would exceed the capacities of Tripoli and Benghazi and the transport needed to move the extra supplies. On 26 May, Unternehmen Venezia began, Tobruk was captured intact on 22 June and shipping losses hardly increased. Deliveries to Libya fell from 150,000-32,000 long tons (152,407-32,514 t), due to a fuel shortage in Italy and all were unloaded at Tripoli, which made the position of the Panzerarmee untenable. Operation Herkules was postponed. The capture of 5,000 long tons (5,080 t) of supplies and 1,400 long tons (1,422 t) of fuel at Tobruk, enabled the Panzerarmee to advance another 400 mi (640 km) by 4 July, when lack of supplies, exhaustion and the rally of the Eighth Army ended the advance.
Tobruk could only take 20,000 long tons (20,321 t) of supplies per month, was within DAF bomber range and the railway carried only 300 long tons (305 t) per day. Small deliveries could be made to Tobruk, Bardia and Mersa Matruh or be landed at Tripoli and Benghazi, 1,300 and 800 mi (2,100 and 1,300 km) distant. Ship losses in August rose 400% and deliveries fell by half, to 51,000 long tons (51,818 t). Deliveries were diverted back to Tripoli and the Battle of Alam Halfa consumed 10,000 long tons (10,160 t) of fuel. A retreat from El Alamein was forbidden by Hitler and deliveries fell as far fewer ships were sent from Italy. (Shipbuilding, repairs and German replacement ships, limited the net loss of merchant ships to 23% since 1940.) On the eve of the Second Battle of El Alamein, the railway from Tobruk flooded and 10,000 long tons (10,160 t) of supplies were stranded, leaving the Panzerarmee with only 10% of the fuel it needed.
Montgomery has been criticised for failing to trap the Axis armies and bring them to a decisive battle in Libya. His tactics have been seen as too cautious and slow, since he knew of the weakness of the Panzer Army and Rommel's intentions from Axis signals decrypts and other intelligence. It has been claimed that the defensive ability of the Afrika Korps in particular and British apprehensions of another defeat and retirement, would have been constraints on the freedom of action of any commander. Warfare in the desert has been described as a "quarter-master's nightmare", given the conditions of desert warfare and the difficulties of supply. Montgomery emphasised balance and refrained from attacks until the army was ready; Eighth Army morale greatly improved under his command. The Axis forces retreated through Libya into Tunisia and fought the Tunisian campaign, eventually to be trapped between the Anglo-American forces of the First Army to the west and the Eighth Army pursuing from the east.