Unable to resist advancing Turkish troops during the Battle of Baku, Dunsterville ordered the evacuation of the city on September 14, after six weeks of occupation, and withdrew to Iran; most of the Armenian population escaped with the British forces. The Ottoman Army of Islam and its Azeri allies, led by Nuri Pasha, entered Baku on September 15 and slaughtered between 10,000 – 20,000 Armenians in retaliation for the March massacre of Muslims. The capital of the ADR was finally moved from Ganja to Baku. However, after the Armistice of Mudros between Great Britain and Turkey on October 30, Turkish troops were replaced by the Allies of World War I. Headed by British general William Montgomery Thomson, who had declared himself the military governor of Baku, 5,000 Commonwealth soldiers arrived in Baku on November 17, 1918. By General Thomson's order, martial law was implemented in Baku.