Hostility toward spiritual traditions may be hampering empirical inquiry. Science and religion seem to be getting ever more tribal in their mutual recriminations, at least among hard-line advocates. While fundamentalist faiths cast science as a misguided or even malicious source of information, polemicizing scientists argue that religion isn’t just wrong or meaningless but also dangerous.

I am no apologist for religion. As a psychologist, I believe that the scientific method provides the best tools with which to unlock the secrets of human nature. But after decades spent trying to understand how our minds work, I’ve begun to worry that the divide between religious and scientific communities might not only be stoking needless hostility; it might also be slowing the process of scientific discovery itself.

Religious traditions offer a rich store of ideas about what human beings are like and how they can satisfy their deepest moral and social needs. For thousands of years, people have turned to spiritual leaders and religious communities for guidance about how to conduct themselves, how to coexist with other people, how to live meaningful and fulfilled lives — and how to accomplish this in the face of the many obstacles to doing so. The biologist Richard Dawkins, a vocal critic of religion, has said that in listening to and debating theologians, he has “never heard them say anything of the smallest use.” Yet it is hubristic to assume that religious thinkers who have grappled for centuries with the workings of the human mind have never discovered anything of interest to scientists studying human behavior.

Just as ancient doesn’t always mean wise, it doesn’t always mean foolish. The only way to determine which is the case is to put an idea — a hypothesis — to an empirical test. In my own work, I have repeatedly done so. I have found that religious ideas about human behavior and how to influence it, though never worthy of blind embrace, are sometimes vindicated by scientific examination.

Consider the challenge of getting people to act in virtuous ways. Every religion has its tools for doing this. Meditation, for example, is a Buddhist technique created to reduce suffering and enhance ethical behavior. Research from my own and others’ labs confirms that it does just that, even when meditation is taught and performed in a completely secular context, leading research participants to exhibit greater compassion in the face of suffering and to forgo vengeance in the face of insult.

Another religious tool is ritual, often characterized by the rigid following of repetitive actions or by engagement with others in synchronous movement or song. Here, too, an emerging body of research shows that ritualistic actions, even when stripped from a religious context, produce effects on the mind ranging from increased self-control to greater feelings of affiliation and empathy.

Ritual can also play a part in strengthening beliefs. Research on cognitive dissonance has shown that publicly stating beliefs that we don’t initially endorse leads to a psychological tension that is often remedied by altering our beliefs and behaviors to match our public pronouncements. Thus the religious practice of repeatedly stating beliefs as part of prayers — as in the Catholic Mass — may enhance devotion to a creed.

What findings like these suggest is that religions offer techniques — or “spiritual technologies,” in the words of Krista Tippett, the host of the radio show “On Being” — that help people endure difficulties, change their views or move them toward action. These techniques seem to work by nudging our behavior subconsciously. Ms. Tippett stresses that the specific religious traditions from which such techniques are borrowed should be understood and honored on their own terms. But when I spoke with her recently, she also agreed that the techniques might work even when separated from their religious trappings, as meditation and elements of ritual have been shown to do.

If this view is right, religion can offer tools to bolster secular interventions of many types, such as combating addiction, increasing exercise, saving money and encouraging people to help those in need. This possibility dovetails with a parallel body of research showing that by cultivating traditional religious virtues such as gratitude and kindness, people can also improve their ability to reach personal goals like financial and educational success.

When I broached this body of research with the cognitive scientist and religious skeptic Steven Pinker, he emphasized that it was by no means a vindication of religion as a whole. He made a point to differentiate between what he called religious practices and cultural practices, with religious ones being those more likely to have doubtful supernatural rationales (like using prayer to contact a deity for favors) and cultural ones having more practical justifications (like using ritual to foster connection and self-control).

While I can see Professor Pinker’s point — and I agree with him that religion as a whole must be judged by its full set of positive and negative effects — the dividing line between cultural and religious can be blurry. The Jewish practice of Shabbat, for instance, stems from a divine command for a day of rest and includes ritualistic actions and prayers. But it’s also a cultural practice in which people take time out from the daily grind to focus on family, friends and other things that matter more than work.

My purpose here isn’t to argue that religion is inherently good or bad. As with most social institutions, its value depends on the intentions of those using it. But even in cases where religion has been used to foment intergroup conflict, to justify invidious social hierarchies or to encourage the maintenance of false beliefs, studying how it manages to leverage the mechanisms of the mind to accomplish those nefarious goals can offer insights about ourselves — insights that could be used to understand and then combat such abuses in the future, whether perpetrated by religious or secular powers.

Science and religion do not need each other to function, but that doesn’t imply that they can’t benefit from each other. Rabbi Geoffrey Mitelman, the founding director of Sinai and Synapses, an organization that seeks to bridge the scientific and religious worlds, told me recently that science can help clergy better aid those they counsel by showing which types of social and behavioral practices are empirically most likely to foster their emotional, moral and spiritual goals.

A yearning for a science-religion synergy is growing in some circles. Ms. Tippett cites as an example the Formation Project, an initiative designed by a group of millennials who are looking to cultivate their inner lives and form a community by combining ideas from psychology and neuroscience with practices from ancient spiritual traditions. In doing this, she points out, these young people are not blindly accepting any doctrine. They are asking questions and choosing what works based on evidence. In short, they are doing exactly what I think the communities of scientists and clergy need to do in a more rigorous way and on a much larger scale.

Will it work? That’s an empirical question. But if we choose not to investigate it, we’ll never know. And I suspect we’ll be the poorer for it.

Article is by David DeSteno, a professor of psychology at Northeastern University, is the author of “Emotional Success: The Power of Gratitude, Compassion, and Pride.”

Follow The New York Times Opinion section on FacebookTwitter (@NYTopinion) and Instagram.

A version of this article appears in print on Feb. 2, 2019, on Page SR12 of the New York edition with the headline: What Science Can Learn From Religion. Order Reprints | Today’s Paper | Subscribe