As I know, Marxism was originated from Karl Marx's works in which he studied the European capitalism after the industrial revolution and concluded that there were probelms with the system that the system would not be able to solve. Therefore socialism would evantually replace capitalism and lead to communism, which Marx believed was the highest level of human society.