In line with this reasoning, psychologist Matt Rossano contends that when humans began living in larger groups, they may have created gods as a means of enforcing morality.
Why would humans have begun to create gods?
a means of enforcing morality