Nucleic acid molecules from cannabis have been isolated and characterized and encode polypeptides having cannabichromenic acid synthase activity. Expression or over-expression of the nucleic acids alters levels of cannabinoid compounds. The polypeptides may be used in vivo or in vitro to produce cannabinoid compounds.