In 1917, after the October Revolution and amidst the turmoil of World War I and the breakup of the Russian Empire, Baku came under the control of the Baku Commune, led by the veteran Bolshevik Stepan Shahumyan. Seeking to capitalize on the existing ethnic conflicts, by spring 1918, Bolsheviks inspired and condoned civil warfare in and around Baku. During the famous March Days of 1918, Bolsheviks and Dashnaks, seeking to establish control over Baku streets, faced armed Azerbaijani groups. The Azerbaijanis suffered defeat from the united forces of the Baku Soviet and were massacred by Dashnak teams in what was called the March Days. An estimated 3,000–12,000 Azerbaijanis were killed in their own capital. After the massacre, on 28 May 1918, the Azerbaijani faction of the Transcaucasian Sejm proclaimed the independence of the Azerbaijan Democratic Republic (ADR) in Ganja, thereby founding the first Muslim-majority democratic and secular republic. The newly independent Azerbaijani republic, being unable to defend the independence of the country on their own, asked the Ottoman Empire for military support in accordance with clause 4 of the treaty between the two countries. Shortly after, Azerbaijani forces, with support of the Ottoman Army of Islam led by Nuru Pasha, started their advance on Baku, eventually capturing the city from the loose coalition of Bolsheviks, SRs, Dashnaks, Mensheviks and British forces under the command of General Lionel Dunsterville on 15 September 1918.