Since 1987, Gasimov was involved in politics. In March–May 1988, Gasimov participated in drafting the charter of Popular Front of Azerbaijan (PFA) and was one of board members of the organization from 1989 to 1990. He was elected member of the Investigation Committee of Azerbaijani Supreme Soviet during the extraordinary session of the parliament on 22 January 1990 to investigate Black January massacre of 20 January 1990. On behalf of PFA, Gasimov had been sent to Moscow to cooperate with deputies of Azerbaijan SSR. Gasimov was credited for his role disseminating the truth about the Black January, refugees to more than 100 TV, radio channels as well as to international media. In May 1992, he was appointed the Minister of Foreign Affairs of Azerbaijan and served until April 1993. Gasimov played an important role in establishing ties with other countries while in office. During his term, Gasimov signed MOU with UN representatives that led to establishment of Azerbaijan's permanent mission to United Nations. After being removed from his post, Gasimov tried to get elected to Azerbaijani Parliament as a member of Musavat during the November 1995 parliament elections but was jailed before the elections even took place.