When Birdwood took over command of the newly formed Dardanelles Army, Godley became commander of the Australian and New Zealand Army Corps for the final stages of the Gallipoli campaign and was promoted to temporary lieutenant general on 25 November 1915. With his appointment as corps commander, he also effectively took over responsibility for the administration of the AIF. The same month it was decided to evacuate the Allied forces from Gallipoli. Although much of the detailed planning for the evacuation was left to his chief of staff, Brigadier General Brudenell White, Godley closely inspected the plans before giving his approval. The evacuation was successfully carried out on the nights of 19 and 20 December, with Godley departing on the first night. Following the withdrawal, he was made Knight Commander of the Order of the Bath for his services at Gallipoli, on the recommendation of General Sir Charles Monro, who had replaced Hamilton as Commander-in-Chief of the Mediterranean Expeditionary Force.