In 1915 Murray was given command of the imperial forces in Palestine and in March, 1916, became British commander-in-chief in the Middle East. After twice failing to take Gaza, he was replaced by Edmund Allenby in June, 1917.
Murray served in England until his retirement from the British Army in 1922.