Kerala's Communist Party of India was the world's first Communist government elected in 1957, which was headed by E. M. S. Namboodiripad.
On the other hand, the Sammarinese Communist Party (PCS) in San Marion is the other elected Communist government that ruled from 1945 to 1957. The head of state is a committee (council) of two captains-regent: Sammarinese Communist Party (PCS) and Socialist Party of San Marino (PSSM). However, the two parties allied to rule San Marino. The coalition lasted from 1945 to 1957. On September 18, 1957, the coalition lost its majority, and the tenure of the assembly ended on October 1, 1957. In 1990 after the collapse of the Soviet Union, the Sammarinese Communist Party renounced communism and restructured it as the Sammarinese Democratic Progressive Party (PPDS).
Therefore it is clear that the Communist Party of India in Kerala, under the leadership of Shri. E.M.S. Namboothiripad is the first single party to form a democratically elected communist government in the world.