Born in
Quba of
Baku Governorate in 1896, Baghirov studied
pedagogy in
Petrovsk. From 1915 to 1917, M J. Baghirov worked as a school teacher in a village in
Khudat. He joined the
Bolsheviks in March 1917 and was elected deputy chairman of the Quba revolutionary committee. From 1918 to 1921, he participated in the
October Revolution and the
Russian Civil War as commander of a
regiment, military commissar of the Azerbaijani division, advisor to the
Caucasus corps of the Russian military command, and the head of the
revolutionary tribunal of the Azerbaijani division. After the Soviet takeover of Azerbaijan, Baghirov was appointed Chairman of the Revolutionary Committee of the Karabakh region of Azerbaijan. It was reported that Baghirov worked also for the Azerbaijan Democratic Republic's police. In February 1921, he joined the
Cheka, the Soviet secret police, later renamed the
OGPU. In 1927–29, he served as the director of the Department for Water Distribution of the Transcaucasia SFSR. From December 1929 to August 1930, Baghirov was the head of the state security services in Azerbaijan. == Relationship with Beria ==