The present invention provides a composition containing cannabidiol/cannabis extract and caffeine. The mass percentage of cannabidiol in the cannabis extract is 10-99%. The mass ratio of cannabidiol to caffeine in the composition is (1-100): 60. The composition may be a food composition or a pharmaceutical composition. The cannabidiol or cannabis extract can prevent and/or reduce adverse reaction to caffeine, particularly prevent and/or reduce caffeine-induced anxiety.