The concept of a Socialist state is closely related to "state socialism", the political view that a socialist system can be established through the use of state action or government policies. As such, the concept of a Socialist state is usually advocated by Leninists and Marxist–Leninists, but it is rejected as being either unnecessary or counterproductive by some classical Marxists, libertarian socialists and political thinkers who view the modern state as a byproduct of capitalism which would have no function in a socialist system and as a result cannot be used to construct socialism. In the Marxist–Leninist view, a "Socialist state" is a state under the control of a vanguard party that is organizing the economic, social and political affairs of the country toward the realization of socialism. The vanguard party presides over a state capitalist economy structured upon state-directed capital accumulation, with the goal of building up the country's productive forces and promoting worldwide socialist revolution, with the eventual long-term goal of building a socialist economy.
The pre-Marxist utopian socialist thinker Henri de Saint-Simon believed that the nature of the state would change under socialism from that of political rule (via coercion) over people to a scientific administration of things and a direction of processes of production. Specifically, the state would become a coordinating entity for production as opposed to a mechanism for political control. According to Friedrich Engels, Saint-Simon foreshadowed the classical Marxist notion of the development of the state in a socialist society.
Karl Marx understood the state to be an instrument of the class rule, dominated by the interests of the ruling class in any mode of production. Although Marx never referred to a "Socialist state", he argued that the working class would have to take control of the state apparatus and machinery of government in order to transition out of capitalism and to socialism. This transitional stage would involve working class interests dominating government policy (the "dictatorship of the proletariat") in the same manner that capitalist class interests dominate government policy under capitalism (the "dictatorship of the bourgeoisie"). Engels argued that as socialism developed, the state would change in form and function: under socialism it is not a "government of people, but the administration of things"; and thus would cease to be a state by the traditional definition.
One of the most influential modern visions of a Socialist state was based on the Paris Commune in which the workers and working poor took control of the city of Paris in 1871 in reaction to the Franco-Prussian War. Marx described the Paris Commune as the prototype for a revolutionary government of the future, "the form at last discovered" for the emancipation of the proletariat. Engels noted that "all officials, high or low, were paid only the wages received by other workers. In this way an effective barrier to place-hunting and careerism was set up". Commenting on the nature of the state, Engels continued: "From the outset the Commune was compelled to recognize that the working class, once come to power, could not manage with the old state machine". In order not to be overthrown once having conquered power, Engels argues that the working class "must, on the one hand, do away with all the old repressive machinery previously used against it itself, and, on the other, safeguard itself against its own deputies and officials, by declaring them all, without exception, subject to recall at any moment". Engels argued such a state would be a temporary affair and suggested a new generation brought up in "new and free social conditions" will be able to "throw the entire lumber of the state on the scrap-heap".
The Leninist conception of a socialist state is tied to Vladimir Lenin's theory of the revolutionary party and organizational principles of democratic centralism. Adapted to the conditions of semi-feudal Russia, Lenin's concept of the "dictatorship of the proletariat" involved a revolutionary vanguard party acting as representatives of the proletariat and its interests. According to Lenin's April Theses, the goal of the revolution and vanguard party is not the introduction of socialism, which could only be established on a worldwide scale, but to bring production and the state under the control of the soviets of workers' deputies. Following the October Revolution in Russia, the Bolsheviks consolidated their power and sought to control and direct the social and economic affairs of the state and broader Russian society in order to safeguard against counterrevolutionary insurrection, foreign invasion and to promote socialist consciousness among the Russian population.