Karl Marx developed the philosophy of dialectical materialism, which applies the dialectic method of thesis, antithesis, and synthesis to understand material and social changes in history. Marx adapted this dialectic method from Hegel but applied it to material realities rather than ideas. For Marx, economic and class relations, not ideas, are the driving forces of historical change. Marx used dialectical materialism to analyze the contradictions within capitalism that he believed would ultimately lead to revolution and the establishment of communism. His theories had a profound influence on socialist and communist movements, though he did not envision many of the practices of later communist states after his death.