Karl Marx developed a theory of historical materialism which argued that economic factors are the primary driver of historical change and development. He believed that society is divided into classes based on their relationship to the means of production, and that these classes inevitably struggle against each other as one class seeks to maintain power over the other. Marx predicted that capitalism would give way to socialism as the working class or proletariat overthrew the capitalist class or bourgeoisie, leading ultimately to a communist, classless society.