Marx described his theory as scientific socialism and looked at the course of human history to uncover facts and patterns which have led to social change (historical materialism).
He used these patterns to predict a communist revolution.
Society so far as Marx described has consisted of:
Primitive communism (classless) -> Ancient Society (based on slavery) -> Feudal society ( based on exploitation of serfs) -> Capitalism (based on exploitation of the proletariat)