Changes in apple leaf chemistry after infestation by leafminers and their effect on both host location and host habitat location of the generalist parasitoid Pholetesor bicolor were investigated. Chemical analysis of leaf solvent extracts from healthy and leafminer-damaged leaves revealed that herbivory increased the amount of the triterpene squalene (C30H50), whereas quantities of all other identified compounds were similar in both plant treatments. To assess the response of parasitoids to host location cues, contact bioassays were conducted with naïve females. Results showed that parasitoids performed a characteristic ovipositional probing more often on the mine-damaged than on the healthy leaf. This behavior was triggered by a hexane extract of the mine-damaged leaf, but not by a healthy leaf extract. A synthetic mixture of the compounds identified in the extract triggered a similar response. A mixture devoid of squalene was not active, whereas squalene alone elicited the probing behavior. To assess the use of the identified compounds in habitat location, Y-tube olfactometer experiments were conducted with naïve and experienced females. Results showed that squalene is not involved in habitat location and has no priming effect on P. bicolor. While other triterpenes are known to mediate habitat location of parasitoids, this is the first report in which a plant triterpene is shown to mediate host location of a parasitoid. The biological and ecological functions of squalene on all three trophic levels are discusse