According to Karl Marx, socialism developed as a consequence of the evils of capitalism. Marx argued that socialism was a response to the inequalities and exploitation inherent in capitalist systems.