Lincoln corresponded with Karl Marx and was at least willing to use Marxist rhetoric when it suited him. In defending his tariff he described transportation costs as "lost labor", a purely Marxist conception.
Marx wrote a column for the New York Tribune and defended Lincoln's war as a means to consolidate power into one central government, a step Marx saw as a necessary one on the road to socialism.