Introduction

Beetles are the most diverse group of insects on Earth with about 400,000 described species1. This large group is distributed worldwide and their species are present in all the ecosystems2,3, being involved in many different types of interactions. Some species belonging to the group of wood-boring beetles destroy the wood either to obtain food (xylophagous) or to protect their eggs, larvae, and pupae4. Wood-boring beetles play an important role in forests due to their contribution to dead wood degradation, involvement in the nutrient cycle, and facilitation of the arrival and establishment of other rare insect species5,6,7. However, some of the xylophagous beetle species are known to cause serious damages in fruit plantations and forests8,9,10.

Wood-boring beetle species belong mainly to the families Cerambycidae, Buprestidae, and Curculionidae, which altogether encompass a vast list of the species considered main forest pests11. Wood-boring beetles complete their life cycle by establishing a parasitic interaction with the tree11,12. Some of the longhorn beetles (Cerambycidae), jewel beetles (Buprestidae), and bark beetles (Curculionidae, Scolitynae) are monophagous or oligophagous, meaning that they are dependent on one or a few tree species of the same genera13. Wood-boring beetles are very important components of the nutrient cycle in forests as they decompose the decaying wood, contribute to the regeneration of soil nutrients and facilitate the establishment of other insects14. Usually, they infest living but weakened trees or untreated lumber, in which females (attracted by volatiles produced by dying or recently dead trees) place their eggs in crevices of trees affected by water stress or roots damaged by biotic or abiotic factors8,11. Moreover, they can also kill conifer seedlings by feeding on their stem bark15,16,17. In temperate coniferous forests, since infestations can potentially kill the trees, these wood-boring species constitute serious pests5 and can cause enormous ecological18,19 and economic losses8,20.

The most harmful wood-boring beetle species throughout the world belong to the subfamily Scolytinae (Latreille, 1804), which are considered the most destructive forest pests21,22,23. In Europe, the bark beetle Ips typographus, known as  the European spruce bark beetle, is the cause of many major economic losses in the forest industry12,24 and forest degradation25,26,27. The massive loss of trees is caused by the bark beetle tunnelling under the trees’ bark and chewing on the cambium layer in the middle and lower parts of the trees that reduce the capacity of the tree to produce new cells that allow the growth of the trunk, branches and roots; but also by the indirect negative effect of fungi, bacteria, and mites associated with bark beetles28. Moreover, in European spruce forests, large-scale windthrow is usually connected with outbreaks of I. typophagus and results in extensive loss of trees7. Such outbreaks of the pest species are caused mostly by changes in the natural or semi-natural environment that can be linked to anthropogenic activities, having a strong impact also on the insect communities29,30,31,32.

Human activities lead to changes in many environmental factors, such as the increase of the global temperature linked to the climate change that threatens the survival of many insect species18,33. The short generation time and the close relation between temperatures and life-history traits18 make insects especially sensitive to temperature changes, like is the case of the specialist ants in the Formica rufa group, oligotope species of coniferous and mixed forests34. Besides the changes in temperatures, human impact also induces habitat loss and other changes in the natural environment, such as alterations in the precipitation regimes that affect the forest growth and production35,36,37. However, climate change can have an opposite effect in some invasive and pest species38, like the bark beetles, and influence positively their populations as it can shorten their generation time and facilitate their spread that leads to the outbreak of their native populations25,27. To try to overcome the negative effects, different management techniques have been developed in order to facilitate an early detection to minimalize the damage caused by different pests24,25. However, these techniques do not always take into consideration the long term effects and the well-being of many other forest-dwelling species, like birds (as woodpeckers39), parasitoids40 or other arthropods (as the clerid beetle Thanasimus dubius41) including wood ants37.

The natural ecosystems tend to find the balance among all the levels by keeping an equilibrium between preys and predators42, a concept that has become the basis of biological pest control. Under such circumstances, the biological control of wood-boring pest species can be more efficient with the use of native enemies together with the current management practices. Ants are known as natural enemies of insect pests worldwide43,44. In European mixed forests, red wood ants shape the invertebrate communities through different interactions at multi-trophic levels45,46 and have been also used as a biological control for pests in plantations since they are considered to be able to prey on or deter arthropod pests14. Moreover, they feature a series of characteristics that make them very efficient in this matter, such as their vast abundance in many ecosystems, a quick reaction to the increasing prey abundance, and the effective retrieval of prey individuals. In the case of red wood ants, the large size of their nests and their organization in polydomous systems allows them to host an enormous number of individuals34 and broods in the inhabited area, increasing considerably the protein consumption of the population. Considering the former, in our study, we investigated whether the presence of the red wood ant Formica polyctena contributes to the forest ecosystem balance by indirectly reducing the death of trees through decreasing the parasite infestation of trees. We hypothesized that the presence of F. polyctena in forests will influence the proportion of infested trees by bark beetles and other wood-boring beetle species, but also the fungal infestation linked to these beetles. To test the role of this wood ant species as a biological control agent, we carried out a large-scale study in which we measured the size and number of F. polyctena nests, the number of infested trees and the cause of their infestation (type of wood-boring beetles or fungus), as well as the physical damages of the trees, and we expected a reduced negative impact of wood-boring beetles in forests with larger populations of wood ants. Additionally, we made an attempt to contribute to the knowledge about the relevant ecological role of red wood ants in forest ecosystems and highlight the importance of the Formica rufa group in habitat conservation and forest pest management.

Materials and methods

The sampling was performed during the summer months (June-July) of 2017 and 2019, and was carried out in 31 forest patches from 12 regions located across a latitudinal gradient (46.215283° N–54.069650° N) crossing three different Central-European countries (Hungary, Slovakia, Poland). The lowest latitude corresponded to Hungary, where two regions (Ásotthalom and Kiskunság) were sampled. At the middle latitude of our gradient, we sampled the Carpathians, with Mátra and Bükk Mountains in the Hungarian area, Fatra Mountains in the Slovakian area, and Tatra, Pieniny, and Gorce Mountains in the Polish area. The other sampled areas encompassed the middle of Poland to the Baltic Sea and corresponded to Świętokrzyska, Kampinos, Białowieza, and Koszalin at the highest latitude.

In each region, we selected mixed forests that are under forestry management. These study sites are composed of Picea abies, Pinus sylvestris, P. nigra, Abies alba and Larix decidua as the most common coniferous species, and Betula pendula, Robinia pseudoacacia and Quercus spp. as the most common non-coniferous ones (according to the local forestry information: NÉBIH, Mapový portal KIMS, Bank Danych o Lasach).

To carry out the sampling, we used the colonies located haphazardly after intensive searching in the study regions. The location of the central point was marked with GPS (GARMIN Oregon 700t), and the 150 × 150 m plots around them were assigned in a random manner using Google Earth Pro. This plot size was determined to be a good representation of the territory of F. polyctena47. In accordance with the presence of F. polyctena populations, in most regions (Ásotthalom, Kiskunság, Bükk, Fatra, Pieniny, Świętokrzyska, Kampinos, Białowieza), we could sample three plots, while in Gorce, Tatra and Mátra Mountains we found only two plots, and in Koszalin only one plot. Within the plots, we recorded the GPS location of each F. polyctena nest and measured their dimensions (two perpendicular diameters and the height). The above-ground nest volume (i.e., semi-ellipsoid) was determined using the following equation:

$$V = \frac{{0.75*\uppi *{\text{r}}_{1} *{\text{r}}_{2} *{\text{h}}}}{2}$$

where h is the height of the nest, and r1 and r2 are the two perpendicular nest radii. We used this equation because the above-ground nest volume is closely related to the red wood ant colony size48,49,50.

To test the relationship between the presence of F. polyctena nests and the tree infestation, we recorded the number and GPS location of every infested tree within a plot and noted down the type of parasite infestation (bark beetle, longhorn beetle, jewel beetle, or fungus). For a more precise characterization of the health status of forests, we also recorded the status of the infested trees (Alive or Dead) and their position (Standing or Laying). Finally, we determined the latitude and altitude of the sampling sites with the help of Google Earth (Google 2019) and established a “latitude value” as an increasing distance value starting from the southernmost study region (Ásotthalom: value 1) and added + 1 value with every 20 km (in beeline) passing to the north, finishing in Koszalin (North Poland, value 61; 28). In a previous study, we found a negative correlation between the latitude and the large-scale environmental variables like irradiation and temperature48. The average age of the forests was gathered from local forestry databases (NÉBIH, Mapový portal KIMS, Bank Danych o Lasach).

Statistical analysis

First, we were interested in whether the degree of the beetle infestation is correlated with the latitudinal and altitudinal gradient of the study sites and the forest age. To test this, we built separate GLM models (negative binomial error, maximum likelihood fit) for each parasite group with the proportion of trees infested by Ips spp., Cerambycidae Buprestidae and fungi as dependent variables, whereas the log + 1 transformed latitude value, altitude, and age of the forest as explanatory variables (N = 12).We used a Redundancy Analysis with Hellinger transformation of species data (RDA, N = 31) to test the association between the number of trees affected by both biotic and abiotic factors. In the model, a matrix built with the average frequency of the trees affected by each beetle and fungi species from each study plot within the study sites was used as a dependent variable. The matrix was built with log-transformed averages of the following explanatory variables: number of nests (Nests number), nests size (Nest volumes), the perimeter of the tree trunks (Perimeter), the ratio of alive trees to the total number of affected trees (Alive), the ratio of the standing trees to the total number of affected trees (Stand), and the ratio of conifers to the total number of affected trees (Conifer). The significance tests for the general model, in order to calculate the effect of the explanatory variables on the dissimilarity matrix of the dependent variables (number of  Ips spp., Buprestidae, Cerambycidae and fungal infested trees), were based on permutational ANOVA tests. .

We also checked whether the infestation by bark beetles varies depending on the status and characteristics of the trees. In the GLM model (Poisson error, maximum likelihood, N = 31), the number of infested trees by Ips spp. was used as a dependent variable, whereas the log + 1 transformed number of alive trees and the perimeter of the trees served as explanatory variables. The same approach was used to test the relationship between the Cerambycidae , Buprestidae and fungal infestation and the characteristics of the trees. In the models, the number of infested trees by Cerambycidae, by Buprestidae and by fungi were used as dependent variables.

A GLM model (Poisson error, maximum likelihood, N = 31) was built to check whether the beetle or the Ips spp. parasitism facilitates the fungal parasitism. In the models, the number of trees affected by fungi was used as the dependent variable and the number of trees affected by beetles was used as an explanatory variable in the first model, whereas the number of trees affected by Ips spp. was used as an explanatory variable in the second model.

We were interested in whether a larger number of F. polyctena nests provides stronger pest control in the forests by a reduction of the number of infested trees. We used Generalized Linear Mixed Models (GLMMs; binomial error, maximum-likelihood fit, N = 31) to check whether the number of F. polyctena nests exert an effect on the number of trees parasitized by each beetle group or fungi. In the models, the ratio of parasitized trees with the Ips spp., Cerambycidae, Buprestidae or fungi to the total number of affected trees were used as dependent variables, whereas the number of F. polyctena nests as an explanatory variable.

We were also interested in whether the number of F. polyctena nests decreases while increasing the dimensions of the nests present within the study plots, and whether larger F. polyctena nests reduce more effectively the infestation of the trees by either beetles or fungi. To test the effect of the nest size on the infestation of the trees with the Ips spp., Cerambycidae Buprestidae, fungi or by all beetle groups in general, we carried out GLMMs (binomial error, maximum-likelihood fit, N = 31). In the models, the ratio of the parasitized trees (Ips spp., Cerambycidae, Buprestidae, fungi or by all beetle groups) to the total number of affected trees were used as dependent variables and the nest size (m3) as the explanatory variable. Additionally, we checked whether the number of F. polyctena nests influences their size. To test it, we carried out a GLMM (Poisson error, maximum likelihood, N = 31) in which the number of F. polyctena nests was used as a dependent variable and the size of the nests (measured in volume, m3) as an explanatory variable.

Finally, to test whether the number of the wood ant nests or size have an influence on the number of parasite groups, we used a GLMM (Poisson error, maximum likelihood, N = 31) with the number of parasite groups as a dependent variable and the number and size of the nests as explanatory variables.

The statistical analyses were carried out by using the R statistical software51. The RDA (carried out by using the function rda) and the PERMANOVA were carried out by using the adonis2 function in the vegan package52 and the Hellinger data transformation was performed by using the function hellinger from the labdsv package53. Generalized Linear Mixed Models were built with the glmer function from lme4 package54. In all the models, we used the identity of the plots and the study area as nested random factors. All models were tested for model overdispersion by using the DHARMa package55. If model overdispersion occurred, negative binomial error distribution was used56. In these latter cases, the models were built with the glmer.nb function. The graphical representation of the results was performed by using the function ggplot in the R package ggplot257.

Results

Our study covered a total of 63 ha and was distributed in 12 regions located in a latitudinal gradient of 900 km in beeline crossing three countries. A total of 393 F. polyctena nests and 3021 trees were measured and searched for parasite infection (Supplementary Table 1). Considering all the affected trees, 74.9% were parasitized by beetle species. The most common pest species belonged to the bark beetle Ips spp., which parasitized 51.3% of the trees.

Our results show that the infestation by Ips spp. was not influenced by the increasing latitude, altitude, or the average age of the forests under study. The same was found for the infestation by the Cerambycidae, Buprestidae and fungi species (Table 1).

Table 1 The effect of latitude, altitude and the average forest age on the number of trees infected by wood boring beetles (Ips spp., Cerambycidae, Buprestidae) and fungi.

Overall the results of the Redundance Analysis (RDA) showed that there is a significant relationship (F = 2.29, p = 0.001; Fig. 1) between the number of trees affected by the parasites (beetle groups and fungi) and the explanatory variables (Nests Number, Nest Volume, Conifers, Alive, Stand, and Tree Perimeter). The first two RDA axis explained in total 96.44% of the variation of the number of trees affected: the first one explained 86.29%, the second 10.15%. The Nest Number (F = 2.96, p = 0.019) and the number of Standing trees (F = 2.46, p = 0.051) were significantly associated with the number of trees affected by beetles and fungi, whereas the frequency of Conifer trees, Alive trees, the Perimeter of the trunks or the Nests volume of F. polyctena had no significant effect in this respect (Table 2).

Figure 1
figure 1

Graphical representation of the RDAs (redundance analyses) on the biotic an abiotic variables.

Table 2 The effect of the number and size of red wood ant nests and tree characteristics (proportion of conifers, alive trees, standing trees and tree perimeter) on the dissimilarities in the number of trees infected by wood boring beetles and fungi.

Moreover, the number of trees infested by Ips spp. showed to be negatively related to the proportion of Alive trees but no relationship was found with the Perimeter of the trunk of the infested trees (Table 3). In the trees infested by the Cerambycidae and Buprestidae groups, we found a positive relationship with the Perimeter of the tree trunks, as well as a negative relationship between the infestation by these groups and the number of Alive trees, which was significant only in the Buprestidae infestation. However, no significant results were found in fungal infestations (Table 3). Notwithstanding, our results do not show any significant relationship between the beetle infestation and the fungal infestation in the studied plots (z = 0.29, p = 0.775).

Table 3 The effect of the tree characteristics (tree perimeter and proportion of alive trees) on the different pest groups (Ips and fungi).

The increasing number of F. polyctena nests present in the study sites was significantly correlated with a reduction in the number of infested trees (z = − 2.19, p = 0.028; Fig. 2a). Moreover, the number of infested trees by Ips spp. showed to be significantly reduced by the increasing number of F. polyctena nests (z = − 2.13, p = 0.033, Fig. 2b). However, no significant negative effect of the number of F. polyctena nests was found on the Cerambycidae (z = − 0.03, p = 0.975; Fig. 2c) or Buprestidae (z = − 0.01, p = 0.989; Fig. 2d) infestations, on the number of beetle groups infesting the trees (z = 0.05, p = 0.961) and on the fungal infestation (z = − 1.72, p = 0.086, Fig. 2e). Moreover, the increase in the number of F. polyctena nests was correlated with a decrease in their size (z = − 2.60, p = 0.007, Fig. 3).

Figure 2
figure 2

Scatterplot with fitted regression line illustrating the relationship between the number of F. polyctena nests and the proportion of infested trees by (a) all the studied pest groups, and separately for (b) bark beetles (Ips spp.), (c) boring beetles of the Cerambycidae group, (d) boring beetles of the Buprestidae group, and (e) fungi. Significant results are with bold font.

Figure 3
figure 3

Scatterplot with fitted regression line illustrating the relationship between the number of F. polyctena nests and their size.

The size of the nests did not have any significant effect on the number of trees affected by Ips spp. (z = 1.58, p = 0.115), Cerambycidae (z = − 0.98, p = 0.329) and Buprestidae (z = − 1.16, p = 0.247) groups separately, nor on the total number of infested trees (z = 0.99, p = 0.321). Similarly, an increase in the nest size did not affect the number of trees infested by fungi (z = 0.09, p = 0.923). Finally, the number of parasite groups infesting the trees was not affected by the number (z = 0.05, p = 0.961) or size (z = − 0.38, p = 0.698) of the F. polyctena nests.

Discussion

In our study, we tested the role of F. polyctena as pest control for wood-boring beetles and fungi in 12 regions located along a latitudinal and altitudinal gradient from South-Hungary to North-Poland. Our results show that the beetle community was mainly shaped by the number of F. polyctena nests, the percentage of alive affected trees and the perimeter of the affected tree trunks present within the studys. The increasing number of F. polyctena nests seems to lead to a reduction in the number of trees infected by bark beetles and, despite the fungal infestation was not significantly reduced, it also seems to be affected. However, the number of wood ant nests did not affect the number of trees infected by other species than Ips spp. Moreover, neither the nest size, the age of the forests, the altitude or the latitudinal location of the study sites showed to be related to the degree of beetle or fungal infestation.

The infestation by bark beetles is often associated with assemblages of fungi, bacteria, and mites which determine their successful tree colonization and reproduction28,58. The death of trees is the result of a double effect: a direct one by the bark beetle boring action and an indirect one by the inoculation with phytopathogenic fungi used to feed their broods22. Notwithstanding, the degree of the infestation by these wood-boring beetles can be determined by their local community structure and composition, as found also in other arthropod groups59,60. Moreover, the wood-boring beetles, in general, can be regulated also by different habitat characteristics like the health status of the trees, the abundance of host plant species, natural predators or even interspecific competition61. From these possible effects, our results indicate that the infestation by the wood-boring species parasitizing the studied forests was shaped to a different extent by the number of red wood ant nests, percentage of alive infested trees and the perimeter of the affected trees.

In our study, though the highest percentage of infestation was carried out by the bark beetles (Ips spp.), other wood-boring species belonging to the families Cerambycidae (Latreille, 1802) and Buprestidae (Leach, 1815) were also present. Due to the higher abundance of Ips species, the other wood-boring species would be more successful by avoiding nesting close to the bark beetles to reduce the larval competition for resources61, which might result in niche partitioning by the species in their search for an optimal reproduction rate. If we take into account that conifers are the main nesting target for bark beetles53,62, and the most abundant trees in our studied forests, this partitioning can be even more accentuated. Furthermore, wood-boring beetles mainly attack dead and weakened trees. Notwithstanding, healthy alive trees and shrubs can be also attacked when the beetle population reaches a high abundance receiving the nomination of “primary invaders”22,63,64. For example, Dendroctonus frontalis, a Curculionidae that produces galleries with an “S” pattern, quickly disrupts the cambium63. Moreover, our results show that boring beetles (belonging to Cerambycidae and Buprestidae groups) are benefited by trees with a larger perimeter. Larger trees can offer a more suitable nesting place (higher amount of older tissues) for the boring beetle larvae and adults are more attracted to carry out their oviposition in them. For example, the species of the genera Agrilus tend to lay their eggs on the south side of large living trees with thick bark8.

The worldwide concept of ants as natural enemies of insect pests43,44 is mainly based on the fact that besides their predatory habits, they also disturb pests during their oviposition and feeding43. Moreover, they also possess the capability of switching to the most abundant prey and of modifying their foraging behaviour to increase the contact with prey species65. In forests, red wood ants can shape the invertebrate community of trees by reducing their species richness through different interactions at multi-trophic levels that also includes the predation on forest pests21,29. Additionally, the supercolonies of the red wood ants show characteristics (such as large biomass of supercolonies, long-term stability, colonization of large areas and high predation on herbivores) that make these species even more suitable as biocontrol agents45,61. Our results show that the presence of F. polyctena nests reduced the number of infected trees by bark beetles. In our scenario, the reduction of this arthropod group might be the result of a combination of a direct effect linked with their predation habits and an indirect effect of the monopolization of resources, the aphid colonies (constituting their stable source of carbohydrates, important in maintaining their large colony size), by the red wood ants66.

The complex polydomous system of F. polyctena requires a large amount of food that is provided by foraging in mass29,32, covering an extensive area of the forest. Moreover, the nuptial flight of bark beetles occurs in spring67, coinciding with the presence of the sexual larvae that determines the peak of predation in red wood ants, and the presence of small populations of lachnids, the main food source of red wood ants later on the season68. In this scenario, bark beetles can easily become the target prey species of red wood ants, mostly in the spring period. For example, in Białowieża forest has been observed a F. polyctena worker with a bark beetle individual in its mandibles (I. Sondej, pers. comm.). Moreover, due to the effects of the climate change (mostly the elevated temperatures), instead of two bark beetle generations in lower latitudes and one in higher latitudes, three and two generations appear, respectively69. This can lead to a higher abundance of bark beetles in the spring period, being more available as a food source for red wood ants. Additionally, the vast number of workers moving to the tree canopy to collect the honeydew from the aphids cover almost totality the tree trunks (34, authors pers. observ.), making extremely difficult for other arthropods to perch. Moreover, the F. polyctena workers tend also to attack insects when they perceive their movement70. As a result, the number of available trees for the oviposition of the bark beetle is strongly reduced, so their abundance is as well negatively affected. This can lead to an increase in tree survival and forest health. However, this forest protection effect is local and the protected area would be more accentuated in the springtime and limited to the area covered by the supercolony of F. polyctena. The mentioned indirect protection from pests has been already used in agricultural practices, e.g. F. polyctena has been used for pest control in apple plantations in Denmark, where its presence led to greater production in the first year61.

The presence of red wood ants is strongly linked to habitat features, which is the main reason why the changes in their habitat had strongly affected their populations resulting in their current threatened status23. Besides factors like the availability of proper food sources, nesting places, and the material for mound construction37, also the temperature and isolation properties are important determinants of the presence of the red wood ant nests both at local and at larger scales48,49,50. Moreover, the combination of the large- and small-scale factors, like the reduction of the insolation on a local scale due to the shading by the tree canopy has been demonstrated to exert an important effect on the F. polyctena nests size and distribution48. However, the latitudinal and altitudinal location as well as the average age of the forests were not related to the infestation of trees by beetles or fungi. This could be due to anthropogenic climate change which promotes higher generation rates in bark beetle populations69 and make possible to these species to become highly abundant in a wide range of habitats.

In conclusion, our study highlights the high effectiveness of red wood ants as pest control agents in mixed coniferous forests. The increasing number of F. polyctena nests, regardless of their size, leads to a severe reduction of the number of infested trees, demonstrating the protective role of F. polyctena nests mostly against bark beetles. Moreover, it seems that this effect is species-specific and is also influenced by other habitat characteristics. Based on these results we can tell that red wood ants can be valuable tools in the development of forest management plans for the control of pest species, such as Ips spp. that are globally a major cause of tree mortality27,53,71. Considering that wood ants can be translocated with good success rate (see72), their colonies can be reintroduced after restoring the lost habitats where F. polyctena was previously present, so they can contribute to their maintenance, or perhaps in not too degraded forest habitats where they might contribute to the recovery of the perturbed forests. Moreover, our study also highlights the importance of the conservation plans for red wood ant species due to their important role in preserving the health of the forests, essential for the forest communities in the light of the threat of global climate change.