The history of socialism has its origins in the French Revolution of 1789 and the changes which it wrought, although it has precedents in earlier movements and ideas. The Communist Manifesto was written by Karl Marx and Friedrich Engels in 1848 just before the Revolutions of 1848 swept Europe, expressing what they termed 'scientific socialism'. In the last third of the 19th century in Europe social democratic parties arose in Europe, drawing mainly from Marxism. The Australian Labor Party was the world's first elected socialist party when the party won the 1899 Queensland state election.
In the first half of the twentieth century, the Soviet Union and the Communist parties of the Third International around the world mainly came to represent socialism in terms of the Soviet model of economic development, the creation of centrally planned economies directed by a state that owns all the means of production, although other trends condemned what they saw as the lack of democracy. In the UK Herbert Morrison said "Socialism is what the Labour government does", whereas Aneurin Bevan argued that socialism requires that the "main streams of economic activity are brought under public direction", with an economic plan and workers' democracy. Some argued that capitalism had been abolished. Socialist governments established the 'mixed economy' with partial nationalisations and social welfare.