The invention provides a nucleic acid encoding an enzyme capable of producing 9-hydroxy-7-epi-zingiberene and 10,11-epoxy-9-hydroxy-7-epizingiberene from 7-epi-zingiberene. The invention further provides novel zingiberene derivatives that can be used for increasing pest resistance of plants.