He served as the Chief Minister of Kerala four times: for a brief period from March 1977 to April 1977, another short term from December 1981 to March 1982, followed by a brief period of president's rule from March 1982 to May 1982, from May 1982 to May 1987, and from June 1992 to May 1995.