In 1892, he started working as a translator of the chief investigator in the district court of
Baku governorate. In 1905, he wrote the article "Absheron Oil Island", and in 1914, he wrote the play "Our bloods that shed at the gates of courts" and the libretto "The Executioner's Victim". He wrote the libretto "The Executioner's Victim" in Russian. The libretto also told about the tragedy of Ms. Gulbahar Akhriyeva, who was the head of
H.Z. Taghiyev's Gymnasium for Girls. The "Hidayat" society opposed religious fanaticism. The society appeals to the people that these customs and ceremonies only harm people. The secretary of the society, Mustafa Bey Alibeyov, wrote an article about this in "Irshad" newspaper. This appeal led to anger by the religious fanatics of the city. Some even demanded the beheading of some members of the community – Gazi Mir Muhammad Karim and Mustafa Bey Alibeyov. Later, they set Muhammad Karim's house door on fire. Mustafa Bey Alibeyov does not leave his house for some time to escape persecution. On January 12, 1911, the first women's publication of Azerbaijan, "
Ishig", whose editor was his wife Khadija Alibeyova, started publishing. The newspaper was published with the financial support of
Haji Zeynalabdin Taghiyev. Since some of the articles in the newspaper were written in Russian, they were read outside of Baku in Tbilisi, Moscow,
Yerevan, and Kyiv. The publication of the newspaper continued until the end of 1912, during which time 68 issues were issued. At different times, he appeared in the press with open and secret signatures. He was one of the main authors of “Basirat” newspaper published from April 1914 to 1920. In 1913, he participated in the trial of Molla Ruhulla Mammadzadeh's murder. He was among those who donated to the "Nuxa-Hürriyeti-Maarif Society", which started its activity in 1917. After the
February revolution, he started political activity and joined the "
Ahrar" party. As a member of the "Help the Needy" society, opposed the acquisition of the weapons of the soldiers of the
Wild Division and demanded the return of their weapons from the Baku Commissariat. He participated in the transfer of the Turkish military captives to the
Ottoman state. After the establishment of the
Azerbaijani Democratic Republic, he became a member of the "Green pen" Union of Writers. Helped the population with food and clothes through the "Help to the Needy" organization. In 1920, after the
April invasion, he moved to Sheki, became a people's judge for significant cases, head of the law office, and a member of the "mudafiun team" in
Ganja. == Death ==