The Basmachi movement (Russian: Басмачество, romanized: Basmachestvo, derived from Uzbek: Босмачи, romanized: Bosmachi, lit. 'bandits') was an uprising against Imperial Russian and Soviet rule in Central Asia by rebel groups inspired by Islamic beliefs and Pan-Turkism. It has been called "probably the most important movement of opposition to Soviet rule in Central Asia".
The movement's roots lay in the anti-conscription violence of 1916 which erupted when the Russian Empire began to draft Muslims for army service in World War I. In the months following the October 1917 Revolution, the Bolsheviks seized power in many parts of the Russian Empire and the Russian Civil War began. Turkestani Muslim political movements attempted to form an autonomous government in the city of Kokand, in the Fergana Valley. The Bolsheviks launched an assault on Kokand in February 1918 and carried out a general massacre of up to 25,000 people. The massacre rallied support to the Basmachi who waged a guerrilla and conventional war that seized control of large parts of the Fergana Valley and much of Turkestan. The group's notable leaders were Enver Pasha and, later, Ibrahim Bek.