Materialism in the view of nature means that when we understand nature and its emergence and development, we think that nature is pure material, without the existence of God and the influence of ideas.
Idealism in historical view means that when we understand the emergence and development of society, we think that the emergence of society is dominated by people, social consciousness determines the existence of society, and overemphasizes people's subjective initiative. Materialism means that social existence determines social consciousness, and human subjectivity is influenced by objective facts.