Sesquiterpene synthase involved in the biosynthesis of beta-caryophyllene, a sesquiterpene with anti-inflammatory and anti-carcinogenic activities. (2E,6E)-farnesyl diphosphate = (-)-(E)-beta-caryophyllene + diphosphate Binds 3 Mg(2+) ions per subunit. Secondary metabolite biosynthesis; terpenoid biosynthesis. Monomer. Higher levels in leaves than in flowers and stems. The Asp-Asp-Xaa-Xaa-Asp/Glu (DDXXD/E) motif is important for the catalytic activity, presumably through binding to Mg(2+). Belongs to the terpene synthase family.