The pinewood nematode (PWN) is a phytoparasite that causes pine wilt disease (PWD) in conifer species. This plant parasitic nematode has heavily contributed to pine deforestation in Asian countries, e.g., Japan, China, and Korea. Over the last two decades, in Europe, Portugal and Spain have been greatly affected. Research on the mechanisms of PWN infection and/or PWD progression in susceptible host species relies on the controlled infection of pine seedlings under greenhouse conditions. This technique is laborious and mobilizes substantial economic and human resources. Additionally, it can be prone to variability that results from the genetic diversity associated with some pine species but also from the interference of external factors. As an alternative, in vitro co-cultures of pine with PWNs offer a more advantageous system for studying biochemical changes since they a) allow controlling single environmental or nutritional variables, b) occupy less space, c) require less time to obtain, and d) arefree from contamination or from host genetic variation. The following protocol details the standard in vivo PWN infection of Pinus pinaster, the maritime pine, and the establishment of the novel in vitro co-cultures of pine shoots with the PWN as an improved methodology to study this phytoparasite influence on pine volatiles. PWN-induced volatiles are extracted from in vivo and in vitro infected pines by hydrodistillation and distillation-extraction, and the emitted volatiles are captured by solid phase microextraction (SPME), using fiber or packed column techniques.