In 1917-1918, he represented communists in Baku and Lankaran.
Gasimov was one of the organisers of the uprising against the Musavat government in the Azerbaijan Democratic Republic and one of the key figures that contributed to the Sovietization of Azerbaijan on 28 April 1920.