Durkheim and Weber both analyzed the social function of religion in their works. Durkheim viewed religion as inherent to society, arising from collective effervescence. He saw religious rituals and symbols as serving to unite individuals and reinforce social solidarity. Weber argued that Protestantism influenced the rise of capitalism by promoting the values of hard work, profit, and worldly asceticism. Though their theories differed in focus, they both saw religion as shaping social order and the individual's relationship to the collective. Durkheim emphasized religion's role in creating social cohesion while Weber explored how it could drive social and economic change.