While Friedrich Nietzsche and Karl Marx were contemporaries and both influential figures in 19th-century European thought, there's little evidence to suggest direct influence between the two. Their philosophical orientations and intellectual projects were quite distinct, and they were often critical of each other's ideas.
Nietzsche, a German philosopher, is best known for his critiques of traditional morality, religion, and the concept of truth, as well as his ideas about the "will to power" and the Ubermensch (overman or superman). His works are deeply individualistic and existential, emphasizing the importance of personal autonomy, creativity, and the pursuit of individual excellence.
On the other hand, Karl Marx, a German philosopher, economist, and political theorist, is famous for his critiques of capitalism and his advocacy for socialism and communism. Marx focused on historical materialism, class struggle, and the critique of political economy, with the goal of analyzing and ultimately transforming social and economic structures to create a more just society.
While there are some thematic overlaps between their critiques of society and the status quo, such as their criticisms of traditional morality and their concern with power dynamics, Nietzsche and Marx approached these issues from fundamentally different perspectives. Nietzsche was skeptical of socialism and collective movements, viewing them as potential threats to individual freedom and creativity, while Marx saw socialism as a means of liberating individuals from oppressive social and economic conditions.
While it's possible that Nietzsche may have been aware of Marx's ideas given their shared intellectual milieu in 19th-century Europe, there's little evidence to suggest that Nietzsche was directly influenced by Marx or that Marx engaged significantly with Nietzsche's work. Their philosophical projects were largely distinct, and they each had their own intellectual circles and influences.