It was formally part of Persia but ''de facto'' autonomous under Turkoman tribal control until Russian forces defeated the Teke army at the Battle of Geok Tepe in January 1881. Persia ceded Askhabad to the Russian Empire in September 1881 under the terms of the Akhal Treaty.