The early religions created moral communities, thus solving the problem of trust between strangers. They sanctified the social order. They taught people that society is as it is because this is the will of the gods and the basic structure of the universe.