Introduction: Galling insects manipulate the development of their host plants. Galls are rich in secondary metabolites, such as phenolic compounds and terpenes. Caryocar brasiliense acts as a host of galling insects. Few studies report the impacts of this plant-insect interaction on the species' morphology, physiology, and secondary metabolism. Objective: The purpose of this study was to verify if there is a correlation between the levels of total phenols and flavonoids in C. brasiliense leaf extracts and environmental variables, such as temperature and precipitation, throughout the year, and to evaluate how galling insects can interfere in this seasonality. Methods: Ethanol extracts from leaves were obtained by soxhlet extraction. The main classes of secondary metabolites were detected by phytochemical prospecting. The levels of total phenols and flavonoids were quantified by the Folin-Dennis tests and complexation reaction with aluminum chloride, respectively. Pearson 's correlation coefficient shows that the levels of phenols and flavonoids were correlated with the average monthly maximum temperatures and precipitation accumulation, respectively, recorded in Gurupi - Tocantins. Results and Discussion: Phytochemical prospecting indicated flavonoids, saponins, tannins, triterpenes, steroids, and alkaloids in both extracts. In C. brasiliense, the samples of healthy leaves suffered a greater variation in the levels of phenols (68.39±2.3 to 279.34±3.1 mg GAE g-1 extract) and flavonoids (164.06± 3.0 at 269.03±3.6 mg QE g-1 extract) compared to leaf samples with galls. A strong positive correlation was found between the contents of total phenols and maximum temperatures and a strong negative correlation with precipitation through Pearson's correlation. Conclusions: The variations observed in the levels of phenols and flavonoids in the extracts of C. brasiliense seem to be related to abiotic factors and the herbivory promoted by the galling insect.