Plants regulate the biosynthesis and emission of metabolic compounds to manage herbivorous stresses. In this study, as a destructive pest, the pre-infestation of rice striped stem borer (SSB, Chilo suppressalis) larvae on rice (Oryza sativa) reduced the subsequent SSB female adult oviposition preference. Widely targeted volatilomics and transcriptome sequencing were used to identify released volatile metabolic profiles and differentially expressed genes in SSB-infested and uninfested rice plants. SSB infestation significantly altered the accumulation of 71 volatile organic compounds (VOCs), including 13 terpenoids. A total of 7897 significantly differentially expressed genes were identified, and genes involved in the terpenoid and phenylpropanoid metabolic pathways were highly enriched. Correlation analysis revealed that DEGs in terpenoid metabolism-related pathways were likely involved in the regulation of VOC biosynthesis in SSB-infested rice plants. Furthermore, two terpenoids, (-)-carvone and cedrol, were selected to analyse the behaviour of SSB and predators. Y-tube olfactometer tests demonstrated that both (-)-carvone and cedrol could repel SSB adults at higher concentrations; (-)-carvone could simultaneously attract the natural enemies of SSB, Cotesia chilonis and Trichogramma japonicum, and cedrol could only attract T. japonicum at lower concentrations. These findings provide a better understanding of the response of rice plants to SSB and contribute to the development of new strategies to control herbivorous pests.