Having joined the ranks of the Bolsheviks, Ildyrym proposed to create Muslim Labor Red Army, then called "Ildyrymmiye", which would defend the Bolshevik governments in regions of Azerbaijan. The first Ildyrymmiye was established in June 1918 in Petrograd and Simal. The same year, Ildyrymmiye army of 2,000 Azerbaijanis fought against the White Army in Astrakhan during the Russian Civil War but due to involvement of Armenian Dashnaks siding with Bolsheviks in massacres of Azerbaijanis during March Days of 1918, Bolsheviks lost their support among Azerbaijanis and the army soon dissolved. In 1919, he returned to Shusha and continued propagating communism. During the existence of Azerbaijan Democratic Republic, Ildyrym served as Deputy Commander of Azerbaijani Navy and chief of the harbor under Musavat's leadership although he was a Bolshevik. In 1919, he established a special navy expedition to handle transportation of oil to Russia.