Russian forces began occupying Turkmen territory late in the 19th century. From their Caspian Sea base at Krasnovodsk (now Turkmenbashy), the Russians eventually overcame the Uzbek khanates. In 1879, the Russian forces were defeated by the Teke Turkmens during the first attempt to conquer the Ahal area of Turkmenistan. However, in 1881, the last significant resistance in Turkmen territory was crushed at the Battle of Geok Tepe, and shortly thereafter Turkmenistan was annexed, together with adjoining Uzbek territory, into the Russian Empire. In 1916, the Russian Empire's participation in World War I resonated in Turkmenistan, as an anticonscription revolt swept most of Russian Central Asia. Although the Russian Revolution of 1917 had little direct impact, in the 1920s Turkmen forces joined Kazakhs, Kyrgyz, and Uzbeks in the so-called Basmachi Rebellion against the rule of the newly formed Soviet Union. In 1921 the tsarist province of Transcaspia () was renamed Turkmen oblast (), and in 1924, the Turkmen Soviet Socialist Republic was formed from it. By the late 1930s, Soviet reorganization of agriculture had destroyed what remained of the nomadic lifestyle in Turkmenistan, and Moscow controlled political life. The Ashgabat earthquake of 1948 killed over 110,000 people, amounting to two-thirds of the city's population.