The capital of Azerbaijan was finally moved from Ganja to Baku. However, after the Armistice of Mudros between the United Kingdom and the Ottoman Empire on 30 October, Turkish troops were substituted by the Triple Entente. Headed by General William Thomson, British troops of 5,000 soldiers, including parts of Dunsterforce, arrived in Baku on 17 November, and martial law was implemented on the capital of Azerbaijan Democratic Republic until "the civil power would be strong enough to release the forces from the responsibility to maintain the public order".