Yuval Noah Harari, author of Sapiens: A Brief History of Humankind, offers an answer:
Humanity’s greatest invention is religion, which does not mean necessarily mean belief in gods. Rather, religion is any system of norms and values that is founded on a belief in superhuman laws. Some religions, such as Islam, Christianity and Hinduism, believe that these superhuman laws were created by the gods. Other religions, such as Buddhism, Communism and Nazism believed that these superhuman laws are natural laws. Thus Buddhists believe in the natural laws of karma, Nazis argued that their ideology reflected the laws of natural selection, and Communists believe that they follow the natural laws of economics.
No matter whether they believe in divine laws or in natural laws, all religions have exactly the same function: to give stability to human institutions. Without some kind of religion, it is simply impossible to maintain social order. During the modern era religions that believe in divine laws went into eclipse. But religions that believe in natural laws became ever more powerful. In the future, they are likely to become more powerful yet. Silicon Valley, for example, is today a hot-house of new techno-religions, which promise us paradise on earth with the help of new technologies. From a religious perspective, Silicon Valley is the most interesting place in the world.