This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

AUSTIN (KXAN/CNN) — One key ingredient in hallucinogenic ‘magic’ mushrooms may be making its way into mental health treatment.

Oregon recently became the first U.S. state to legalize psilocybin, the mushrooms’ hallucinogenic compound, as a supervised mental health treatment.

A recent study of 24 participants with major depressive order found that those who received psilocybin-assisted therapy showed improvement in severity and overall outcomes one month later.

“This randomized clinical trial found that psilocybin-assisted therapy was efficacious in producing large, rapid, and sustained antidepressant effects in patients with major depressive disorder,” the study reads.

The treatment included one session giving 20 milligrams of the compound and one giving 30 milligrams. The authors of the study posit that the psilocybin may hopefully be used as a more effective and less problematic treatment than ordinary medications or placebos.

Psilocybin has also been studied and given to patients with terminal cancers — finding the treatment to be successful in limiting depression and pain with them, as well.

In Oregon, patients can only purchase or consume psilocybin under licensed supervision.