After the German defeat at the battle of El Alamein in October 1942, the threat to Egypt receded. reached an agreement with the prime minister, Ismail Sidqi, whereby British troops would withdraw from the towns by March 1947 and from the canal zone by September 1949. But the Wafd, now in opposition, scuppered the deal by demanding that the British withdraw from Sudan, too, and this they refused to do