Karl Marx replaced idealism with materialism.