Studies like this one conducted in Tokyo suggest that prolonged gum chewing activates part of the brain (the ventral part of the prefrontal cortex) that in turns sets off a cascade of effects resulting in fewer feelings of depression.
FORBES: Chew Yourself a Better Brain