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