Scots pine (Pinus sylvestris; Pinaceae, Pinales) is known to defend against egg deposition by herbivorous sawflies by changing its terpenoid volatile blend. The oviposition-induced pine odor attracts egg parasitoids that kill the sawfly eggs. Here, we investigated whether sawfly egg deposition activates genes encoding pine terpene synthases by extracting mRNA from oviposition-induced P. sylvestris. Three new sesquiterpene synthases, PsTPS 1, PsTPS 2, and PsTPS 3, were isolated that were shown on heterologous expression in Escherichia coli to produce (E)-β-caryophyllene and α-humulene (PsTPS 1), 1(10),5-germacradiene-4-ol (PsTPS 2), and longifolene and α-longipinene (PsTPS 3) as their principal products. Quantitative RT-PCR analyses revealed that transcript levels of PsTPS 1 and PsTPS 2 were significantly higher in oviposition-induced twigs that were attractive to the parasitoids than in non-attractive, artificially damaged twigs. Thus, our results demonstrate a specific transcription response to egg deposition, distinct from that caused by artificial wounding. Transcripts of PsTPS 3 did not change in response to egg deposition. The transcript levels of PsTPS 1, PsTPS 2, and PsTPS 3 were also determined in relation to time after egg deposition, since pine odor is attractive to the parasitoid only 72 h after egg deposition. Transcription rates of PsTPS 1 and PsTPS 2 were significantly enhanced only 72 h after egg deposition, thus matching the timing of odor attractiveness, while for PsTPS 3, enhanced transcription was not detected at any time period studied after egg deposition. The ecological significance of the oviposition-induced increase of sesquiterpene synthase transcripts is discussed.Electronic supplementary materialThe online version of this article (doi:10.1007/s00425-008-0747-8) contains supplementary material, which is available to authorized users.