The invention provides a composition comprising cannabidiol or a cannabis extract, and caffein. The mass percentage of the cannabidiol in the cannabis extract is 10%-99%. A mass ratio of the cannabidiol to the caffein in the composition is (1-100):60. The composition can be a food composition or a pharmaceutical composition. The cannabidiol or the cannabis extract can prevent and/or ameliorate adverse reactions induced by the caffeine, and in particular, prevent and/or ameliorate anxiety behaviors induced by the caffeine.