Hegel lived from 1770 to 1831 and Marx lived from 1818 to 1883. Marx was 13 years old when Hegel died. Hegelianism was dominant in Berlin when Marx, then nineteen years old, arrived there and began studying Hegel. Hegel influenced Marx but Marx had no influence on Hegel. In other words, Hegel is not a Marxist and Marx is not a Hegelian. Hegel was a systematic philosopher who tried to encompass everything in his philosophy. Marx was a political economist who relentlessly criticized capitalism and sought a better system. They both used the same general analytical method, called dialectics, to analyze history and society. Dialectics supposes that everything, including people and societies, exists in a state of tension, internally with unrealized aspects of itself, and externally with other entities. The resolution of these tensions takes place in history and will eventually lead to a perfect society. The first part of this process is called thesis and refers to the presently known state of whatever is in question. The unrealized aspects, or more generally anything in conflict with the present state, is called the antithesis. The resolutions of the conflict is called synthesis. Neither Hegel nor Marx invented this method, it gots back at least to socrates, but Marx drew most heavily from Hegel's formulation of it.

Hegel thought the state was the highest social achievement of man. Marx thought the state would fade away after the masses took power. Hegel disliked popular sovereignty and thought it would lead to social chaos. Marx thought "the people" would made the best rulers after the state vanishes.

For Hegel reality develops by a rational process from the individual to a rational authoritarian state run by a monarch. For Marx the most important and far reaching aspect of reality consists in the modes of economic production present in a state. Members of the working class are alienated from each other and themselves until they develop a self-consciousness that becomes a class consciousness. The workers then understand the oppressive system they inhabit and that only by rebelling against the owners of the means of production, overthrowing the state, and replacing it with an arrangement in which the workers own the means of production and run the state, can they become truly free and fully realized individuals.

Hegel's state is a collection of rational individuals ruled by a monarch. Individuals are born into a state and develop in it, and because of it, into free, rational beings. Individuals can only be free and fully realized in a highly organized, rational, and authoritarian state. Such states develop through the increasing rational understanding of society and history. This knowledge is then used to identify and fix social problems. In this way society continuously moves toward a perfect state.

In Marx also individuals are born into a state which is at a certain stage of development. All states develop, but Marx and Hegel have different views of how that development takes place and the final end thereof. In Hegel the focus is on individuals developing full self-realization in the context of a state which is itself developing toward a rational monarchy. A competitive free market economy provides the material motor for all development. In Marx free market capitalism is the oppressive mode of production that must be removed by force. In Marx people are born into a state consisting of specific class divisions and relations. The conflict between the class that owns and controls the means and manner of economic production and those that actually make the goods that are sold is the motor of social change. Through the resolution of these conflicts by overthrowing the owners of the means of production the centralized state will disappear and people's affairs will be handled by themselves without an authoritarian state or king telling them what to do.

Had these two strongly opinionated individuals met each other they would've had sharp disagreements, culminating with Hegel's boot impacting Marx's boils. I would've good money paid to see that.