He was not "fond" of capitalism - he rightly considered it preferable to feudalism, but to Marx, capitalism and liberalism were two sides of the same coin: capitalism the economic side, liberalism the political side. He was a revolutionary socialist and a proponent of organized labor; the "liberalism" Marx hated was what we would now call "classical liberalism".