After surviving firefights and a roadside bomb in Afghanistan, U.S. Army veteran Asa Barrett tried antidepressant drugs and therapy to overcome depression and bouts of anger. Nothing worked.

But then, like many other foreigners, he journeyed to Peru’s remote Amazonian jungle to drink ayahuasca, a centuries-old, sacred indigenous brew that some Western scientists think can help to heal psychological traumas.

During...