Between 1940 and 1941, the 5th Division was involved in the campaign in East Africa. After periods in Egypt, Cyprus and Syria, by 1942 it was involved in the fighting in the Western Desert of North Africa and the withdrawal of the Allied troops to El Alamein. By late 1943, the 5th Division had been shipped to India and took part in the campaign in Burma, initially deployed to the Arakan front. After the Japanese had been defeated in the Battle of the Admin Box, the division was airlifted north to take part in the Battle of Imphal and the Battle of Kohima. Thereafter, the division was almost constantly involved in the advance through central Burma until fighting ended with the Japanese surrender in August 1945. After the end of the war, it was the first unit into Singapore and then fought pro-Independence forces in Eastern Java while protecting the recovery of Allied prisoners of war who had been incarcerated there.