Dr. Haidt developed a better sense of the elephant after visiting India at the suggestion of an anthropologist, Richard Shweder. In Bhubaneswar, in the Indian state of Orissa, Dr. Haidt saw that people recognized a much wider moral domain than the issues of harm and justice that are central to Western morality. Indians were concerned with integrating the community through rituals and committed to concepts of religious purity as a way to restrain behavior.

On his return from India, Dr. Haidt combed the literature of anthropology and psychology for ideas about morality throughout the world. He identified five components of morality that were common to most cultures. Some concerned the protection of individuals, others the ties that bind a group together.

Of the moral systems that protect individuals, one is concerned with preventing harm to the person and the other with reciprocity and fairness. Less familiar are the three systems that promote behaviors developed for strengthening the group. These are loyalty to the in-group, respect for authority and hierarchy, and a sense of purity or sanctity.

The five moral systems, in Dr. Haidt’s view, are innate psychological mechanisms that predispose children to absorb certain virtues. Because these virtues are learned, morality may vary widely from culture to culture, while maintaining its central role of restraining selfishness. In Western societies, the focus is on protecting individuals by insisting that everyone be treated fairly. Creativity is high, but society is less orderly. In many other societies, selfishness is suppressed “through practices, rituals and stories that help a person play a cooperative role in a larger social entity,” Dr. Haidt said.

He is aware that many people — including “the politically homogeneous discipline of psychology” — equate morality with justice, rights and the welfare of the individual, and dismiss everything else as mere social convention. But many societies around the world do in fact behave as if loyalty, respect for authority and sanctity are moral concepts, Dr. Haidt notes, and this justifies taking a wider view of the moral domain.

The idea that morality and sacredness are intertwined, he said, may now be out of fashion but has a venerable pedigree, tracing back to Emile Durkheim, a founder of sociology.

Dr. Haidt believes that religion has played an important role in human evolution by strengthening and extending the cohesion provided by the moral systems. “If we didn’t have religious minds we would not have stepped through the transition to groupishness,” he said. “We’d still be just small bands roving around.”