This is a question for the atheists here, although religious people may chime in if they like!
Karl Marx said “religion is the opiate of the masses,” but rather than dismissing it like that, I’d like to discuss it thoroughly, starting from the very first religions known (now considered to be myths).
Was religion created to keep peasants in line? (Serve your masters and you’ll go to heaven where you never have to work again?) Or just as a way for mankind to explain the natural phenomenon around him that kept occurring - like there being a “God of Thunder” whom the Norse called Thor, etc.