The invention relates to nucleic acids encoding a zingiberene synthase that enables host cells and plants to make zingiberene that is useful in fragrances and for repelling or killing insects. The invention also relates to isolated zingiberene synthases and to methods for making zingiberenes.