Pharmaceutical compositions or functional foods for treating depression and anxiety comprising ginseng saponin (Rgl+Rbl), glycyrrhizic acid and jujuba cAMP. Experiments demonstrate that as compared with the preferred drug for treating depression and anxiety paroxetine and diazepam in the art, the present invention has significant anti-depression and anxielytic efficacy.