AbstractThe research conducted so far on the chemical mechanisms of trees' defence against foliophages has not uncovered the chemical compounds biosynthesized by plants that are essential for these mechanisms. The objective of this study was to identify a chemical indicator for the presence of the pine beauty moth in Pinus sylvestris stands. Fresh needled shoots were collected from the crowns of pine trees in stands where the pine beauty moth tends to occur in large numbers, as well as from control stands. Total phenolic contents, total flavonoids contents, total chlorophyll content, terpene compounds, phenolic compound concentration, LMWOAs, sugar content, and colour analysis were conducted. Chlorophyll content, the presence of Panolis flammea in forest stands, and the colour of pine needles were discovered to be related. Variable L* correlated positively with the concentrations of chlorophyll a and b. In pine needles that were not attacked by the pine beauty moth, significantly higher concentrations of 4‐hydroxybenzoic acid, salicylic acid, chlorogenic acid, syringic acid, quercitin, and rutin were found, with the first compound having the most significant effect (4‐hydroxybenzoic acid). Based on the study results, the connected compounds in pine needles make them susceptible to insect attack. In addition, insect repellent programmes were mentioned.