Dioryctria sylvestrella Ratz. poses a remarkable hazard for the Pinus brutia Ten. in Turkey. In the current study, the larvae gallery resin of five trees and essential oils of resin, which was obtained with the Acid-Paste Method, were analyzed using the Gas Chromatography and Mass Spectrometry (GC-MS) Method. Thirty nine compounds were found in larvae gallery resin, which were produced by Dioryctria sylvestrella Ratz, while thirty six compounds were extracted from oleoresin obtained by the Acid-Paste Method. The most common compounds of larvae gallery resin were alpha-pinene at a rate of 20.2 %, beta-caryophyllen at a rate of 10.8 %,gamma-terpinene at a rate of 10.1 % and beta-pinene at a rate of 9.4 percent. The most common compounds of oleoresin were alpha-pinene at a rate of 19.7 %, beta-pinene at a rate of 13.3 %,gamma-terpinene at a rate of 10.2 % and beta-caryophyllen at a rate of 7.8 percent. Also, the quantities of some compounds within larvae gallery resin such as beta-pinene, limonene, and sylvestrene decreased compared to those of oleoresin, while the quantities of some compounds in oleoresin including alpha-longipinene, alpha-terpineol, and longifolene increased compared to that of larvae gallery resin. However, no qualitative difference was found.