The traditional Turkmen Assembly convened in Merv decided that the Russians would be met in the east, at the fortress of Merv, by Nur Verdi Khan, and in the west, at the fortress of Gök-Tepe, by his son Berdi Murad Khan. After General Lazarev died of blood poisoning on 26 August 1879, General Lomakin took over command. The attack launched by the Russian forces against the fortress of Gök-Tepe on 9 September 1879 was repulsed by the Turkmens despite a superior firepower consisting of artillery, machine guns and modern rifles, at the cost of some 4,000 lives, among them Berdi Murad Khan, against 185 Russian losses. Since Gök-Tepe could not be taken, General Lomakin was dismissed and replaced as commander by the famous General M. D. Skobelev, who had fought against Osman Pasha at Plevna in the Ottoman-Russian War of 1877–78.
In 1880 General M. D. Skobelev replaced the demoralized units with new ones, began the construction of a railway line extending from the east of the Caspian towards Gök-Tepe, and, having completed his preparations in April 1880, entered Turkmen territory. When Nur Verdi Khan suddenly fell ill and died on 5 May 1880, the Turkmens elected the Khan's younger son Makhtum Kuli as Khan, appointed a three-member council of advisers together with Tykma Serdar, and continued their defensive preparations against the Russian forces. However, General M. D. Skobelev, with his superior firepower based on artillery and machine guns, with mining and with his disciplined army, captured the fortress of Gök-Tepe as a result of a battle that began on 1 January 1881 and ended on 25 January, in which 289 Russians and 34,500 Turkmens, women and children among them, lost their lives. The operation was continued, and by 30 January 1881 the Turkmen lands as far as Ashgabat had also been captured; in April 1881 Tykma Serdar, and a few months later Makhtum Kuli Khan, surrendered to the Russians. The Turkmens of the Merv region, who desperately sought help from the British and whose requests for help were rejected by Great Britain's ambassador in Tehran, also surrendered to the Russians in January 1884, under the leadership of Nur Verdi Khan's widow Gülcemal Khanum, as a result of the efforts of Alikhanov, a captain in the Russian army. Thus the occupation of Turkmenistan, begun in 1860, was completed in 1884.
In the period of Tsarist Russia the administrative hierarchy and the bureaucracy were made up of Russians, and a period of oppression full of abuses and corruption was experienced. Indeed, a commission headed by Count K. K. Pahlen, of German origin, which was sent to Turkestan after the Russo-Japanese War of 1905, established that the greatest corruption in Turkestan was in Turkmenistan, and caused two-thirds of the officers and bureaucrats serving in this country to be brought before the courts on charges of theft, bribery, fraud and murder.
