After their overthrow, the Baku commissars attempted to leave Baku but were captured by the Centrocaspian Dictatorship and imprisoned. On 14 September 1918, during the fall of Baku to Ottoman forces, Red Army soldiers broke into their prison and freed the commissars; they then boarded a ship to Krasnovodsk, where they were promptly arrested by local authorities and, on the night of 20 September 1918, executed by a firing squad between the stations of Pereval and Akhcha-Kuyma on the Transcaspian Railway by soldiers of the Ashkhabad Committee.