Immediately after the overthrow of capitalism, Marx stated a dictatorship of the proletariat would be needed in order to ensure that all vestiges of capitalism are wiped out. This government takes control of the means of production for the proletariat as a whole and keeps the country on the road to communism.