St. John's wort is believed to increase the levels of certain neurotransmitters in the brain, such as serotonin, dopamine, and norepinephrine. These chemicals play a crucial role in regulating mood, and increasing their levels may help alleviate symptoms of depression.