According to Marx, the state exists only as a tool of class oppression, and hence a socialist revolution is a revolution where the working classes take the power from the capitalist classes and use the state power to oppress the capitalists, and gradually nationalise the means of productions.