X Corps fought the Second Battle of El Alamein. The original plan was to be simultaneous attacks by XXX Corps and XIII Corps, to clear corridors for the X Corps armour to exploit. Events affected the plan and on 5 October, it was decided to attack simultaneously with XXX and X Corps. The New Zealanders rapidly captured Miteirya Ridge and XIII Corps pressed forward, X Corps was to strike north-westwards to distract and defeat GeneralfeldmarschallErwin Rommel and the Italo-German army. By 4 November, X Corps was in pursuit but heavy rain bogged the armour down and Rommel escaped. The corps was active through the remainder of the Tunisian Campaign with the Eighth Army until the Axis forces surrender in Tunisia in May 1943.
In the spring of 1944, the corps was relieved by the French Expeditionary Corps (CEF) and switched back to the Eighth Army, taking position on the right of XIII Corps. The corps had a minor role in the Fourth Battle of Cassino but was involved in the Allied advance north through the summer, to the German Gothic Line defences. In September 1944 the corps played a holding role on the left flank of Eighth Army during Operation Olive, the autumn offensive on the Gothic Line.
In November 1944 command of X Corps was taken by Lieutenant-General John Hawkesworth, when McCreery was promoted to command Eighth Army, in place of Oliver Leese.[12] From October 1944, after the Axis forces withdrew from Greece, British troops under Lieutenant-General Ronald Scobie were sent there to maintain internal stability. In late 1944 Hawkesworth and X Corps HQ were sent to Greece to assume control of military operations so that Scobie could concentrate on the political aspects of the British involvement.[13]
By March 1945 Hawkesworth and his HQ had returned to Italy. X Corps was in reserve and not involved in the Allied Spring 1945 offensive in Italy in April, culminating in the surrender of Axis forces in Italy in early May. By this time it had become apparent that Hawkesworth was suffering from a serious heart condition. He died on the way home to Britain, when he suffered a heart attack while on board his troopship which lay at Gibraltar, on 3 June 1945.