After the Basmachi movement was destroyed as a political and military force, the fighters that remained hidden in mountainous areas conducted a guerrilla war. The Basmachi uprising had died out in most parts of Central Asia by 1926. However, skirmishes and occasional fighting along the border with Afghanistan continued until the early 1930s. Junaid Khan threatened Khiva in 1926, but was finally exiled in 1928. Two prominent commanders, Faizal Maksum and Ibrahim Bey, continued to operate out of Afghanistan and conducted a number of raids into the Tajik Soviet Socialist Republic in 1929. Ibrahim Bek led a brief resurgence of the movement when collectivization fueled resistance and succeeded in delaying the policy until 1931 in Turkmenistan, but he was soon caught and executed. The movement then largely died out. In Kyrgyzstan, the last strongholds of the Basmachi were destroyed by 1934.. What happened first, the threat agains Khiva or the Basmachi movement?