Diverse forms of Marxism agree that social ills result from oppression of the poor by the wealthy (class conflict) but differ on strategies to overcome poverty and establish social harmony. Marxism is also associated with atheism, based on Karl Marx's view that religion is used by rulers to legitimate the status quo, causing many Muslims to reject Marxism. But due to the affinity between Marxist and Islamic ideals of social justice, some Muslims adopted various forms of Marxism from the 1940s, reaching peak popularity in the 1960s and 1970s. Their analyses often ignored materialism and atheism, rejecting the idealist view that religion is independent of historical conditions and holding instead that many of its manifestations are related to the societies in which it operates. Islam in this view ideally meets the needs of society and can both accommodate and guide social change.