Introduction

Tropical forests harbor the highest proportion of biodiversity worldwide (Myers et al. 2000). However, they are decimated and fragmented due to human land use, often resulting in a mosaic landscape consisting of forest patches and various agricultural land-use systems (Grass et al. 2020). Although forest conversion and degradation constitute the major drivers of tropical biodiversity decline (Gibson et al. 2011), many species remain in the agricultural landscape (Belshaw and Bolton 1993). Assessing the implications of land-use change for biodiversity is, therefore, a fundamental step to develop effective conservation strategies for tropical agricultural landscapes and to identify sustainable land-use options that prevent further biodiversity loss.

Ants are among the most abundant insect groups in terrestrial ecosystems (Passera and Aron 2005). Their diversity and endemism rate peak in tropical regions (Lach et al. 2010). Ants are involved in diverse ecosystem functions such as soil turnover (Folgarait 1998), seed dispersal (Retana et al. 2004), predation (Cerdá and Dejean 2011), and food provision for other animal groups like birds (Dean and Milton 2018). However, ants, in particular native ants, are sensitive to human land use, such as logging and forest conversion, which often reduces species richness and changes the species composition of ant communities (Dunn 2004; Delabie et al. 2007; Ottonetti et al. 2010). On the contrary, habitat disturbance generally promotes invasion of exotic ant species, which can be problematic for the native ant community, because of their competitive behavior on resources (Holway et al. 2002). In addition, the structure of ant community may also be driven by environmental factors such as canopy openness, vegetation structure, deadwood volume, and landscape forest cover (Luke et al. 2014; Solar et al. 2016). Analyzing how these factors influence species richness can thus help identify land-use management options that result in few exotic species to efficiently preserve the native (endemic) ant community.

Madagascar, a global biodiversity hotspot, hosts more than 1200 ant species, with 93% of described species are endemic to the island, and 41 species are exotic (Myers et al. 2000; Fisher and Christian 2019). Forests are indispensable for the majority of Madagascar’s endemic biodiversity (Irwin et al. 2010). However, deforestation through agricultural practices has led to a loss of 44% of Madagascar’s forest cover between 1953 and 2014 (Clark 2012; Vieilledent et al. 2018). Today, protected areas constitute the main conservation strategy to protect Madagascar’s remaining biodiversity (Gardner et al. 2018). However, little is known about conservation opportunities in the agricultural landscape outside protected areas. Exotic ants could be problematic for Madagascar’s native ant community, as demonstrated in a previous study that found aggressive competition of exotic ant species towards native ant species (Dejean et al. 2010). Thus, conservation strategies need to include the management of exotic species to protect native ant species.

North-eastern Madagascar holds proportionally more forest than other regions of the island. Nonetheless, these are also subject to transformation, mainly through slash-and-burn agriculture for hill rice cultivation by smallholders (Zaehringer et al. 2015). Slash-and-burn agriculture consists of cutting down the forest or woody fallow land, burning the plant biomass, and cultivating rice. This is followed by a fallow period, after which an additional cycle of slash-and-burn cultivation can commence. North-eastern Madagascar also supplies the biggest share of vanilla to the global market (FAO 2020). The increase of global demand and the rise of vanilla prices between 2012 and 2019 has triggered an expansion of vanilla cultivation in the region, where forest or fallow land is transformed into vanilla agroforests (Llopis et al. 2019). Here, the biodiversity value of vanilla agroforests may depend on land-use history, meaning whether the vanilla agroforest was established at the expense of forest (forest-derived), driving forest transformation, or whether it was planted on formerly fallow land (fallow-derived), rehabilitating formerly burned land (Martin et al. 2020a). However, this important distinction is hardly made in land-use research (Martin et al. 2020a), but research on plants (Osen et al. 2021; Raveloaritiana et al. 2021) and birds (Martin et al. 2021) indicates differences in species richness and composition depending on land-use history, particularly for endemics.

Overall, the landscape of north-eastern Madagascar is characterized by a mosaic of forest fragments, rice cultivation (irrigated and rainfed), vanilla agroforests, and fallow lands (Zaehringer et al. 2015). Vanilla agroforests are characterized by a combination of shade trees and Vanilla planifolia plants, leading to a structurally diverse habitat with medium to high canopy closure (Osen et al. 2021). Woody and herbaceous fallows and rice paddy have significantly lower or no canopy closure and structurally and taxonomically simplified vegetation (Osen et al. 2021). Recent studies assessed the impact of land-use change on biodiversity in north-eastern Madagascar, highlighting the value of vanilla agroforests to complement forests for the conservation of vertebrates including birds and lemurs, plants, and ecosystem functions (Hending et al. 2018, 2020; Osen et al. 2021; Schwab et al. 2021; Raveloaritiana et al. 2021). Invertebrates, in particular ants, have only been studied in forest habitats rather than in the agricultural landscape.

In this paper, we report how land-use change through smallholder agriculture affects endemic, exotic, and non-endemic native ant communities in north-eastern Madagascar. First, we compared ant species richness and species composition across seven land-use types: old-growth forest, forest fragment, forest-derived vanilla agroforest, fallow-derived vanilla agroforest, woody fallow, herbaceous fallow, and rice paddy. Second, we assessed how environmental factors drive ant species richness in the agricultural matrix to identify management options that promote endemic and non-endemic native ant species while controlling exotic ant species.

Materials and methods

Study region and sampling design

We carried out our study in the central part of the SAVA region, in north-eastern Madagascar. The climate is warm and humid (UPDR 2003), with 2223 mm annual precipitation and 24.0 °C average temperature (average across 80 plots, data retrieved from CHELSA climatologies; Karger et al. 2017). The climax vegetation type is tropical rainforest (Baena et al. 2007).

We studied seven land-use types: old-growth forest (10 replicates), forest fragment (10), forest-derived vanilla agroforest (10), fallow-derived vanilla agroforest (20), woody fallow (10), herbaceous fallow (10), and rice paddy (10). The description of each land-use type is found in Table 1. Overall, we had 80 plots distributed in ten villages and two old-growth forest sites in Marojejy National Park (Fig. 1). The minimum distance to neighboring plots was 719 m ± 438 m. The average plot elevation above sea level was 192 m ± 207 m. We standardized our plot size to a 25 m radius circle.

Table 1 Description of land-use types studied in north-eastern Madagascar
Fig. 1
figure 1

a Location of the SAVA region within Madagascar, b SAVA region with the four districts Andapa, Antalaha, Sambava, Vohemar and the study area therein, c map of the study area with forest cover and triangles depicting the 10 study villages and 2 old-growth forest sites, and d our seven land-use types studied summarizing the typical land-use change dynamic through slash-and-burn agriculture for hill rice cultivation in north-eastern Madagascar. Dashed arrows indicate possible, but prohibited transformation of old-growth forest. Full arrows represent common transformation trajectories from one land use to another. Rice paddy is not part of the slash-and-burn cycle and represents the most intensive land use in the region

Ant sampling and identification

We sampled ants using bait and pitfall traps on all plots except the old-growth forest between October and December 2017, and in the old-growth forest between August and December 2018. In each plot, we established five sampling stations: one at the plot center, and four 16 m away from the plot center in each cardinal direction. At each sampling station, we set bait and pitfall traps 10 m apart. For bait traps, we put sardine and sugar as bait on two different white flat plastic supports (diameter of 13 cm) about 5 cm apart (illustration in Supplementary Material S1). We set the baits for 30 min and thereafter collected the specimens present on the white plastic support for 30 s. For pitfall traps, we buried a plastic cup (9 cm top diameter, 11 cm deep, 6 cm bottom diameter) in the soil with the opening at the same level as the ground surface. We then filled one-third of the plastic cup with 70% ethanol and few drops of soapy water. We left the pitfall traps active for 48 h. We preserved ant specimens in 70% ethanol for further identification.

To identify ants to the genera level, we used the identification key from Fisher et al. (2016). We then identified ants to species level using identification keys (e.g. Fisher and Smith 2008; Bolton and Fisher 2014; Rakotonirina and Fisher 2014; Salata and Fisher 2020). If identification was unclear, we identified species as morphospecies. We stored voucher specimens at the Biodiversity Centre in Antananarivo, Madagascar, for reference and further taxonomical study. We assigned our ant species into different origin categories (AntWeb 2020): endemic, exotic, non-endemic native, and unknown ants. In total, we recorded 128 ant species/morphospecies (57 endemic species, 19 exotic species, 18 non-endemic native, and 34 species of unknown origin) distributed in 38 genera and seven subfamilies. In the present study, we excluded the unknown ants but included the results on this category in the supplementary materials (Supplementary Material S2–S4).

Environmental parameters

In each plot, we recorded canopy closure, tree species richness, stem density, understory vegetation cover, and lying deadwood volume as local environmental parameters. We counted and identified all trees (woody perennial plants) and tree-like plants (arborescent palms and ferns) with a diameter at breast height ≥ 8 cm, from which we extracted data on tree species richness and stem density (number of living stems per ha). To assess canopy closure, we set a Nikon D5100 camera with a fisheye lens and 180° field of view on a tripod at 2.4 m height. Then, we took series of hemispherical photographs. We processed the photographs with the “ImageJ” program (Rasband 2014) to create a binary image representing sky and vegetation and applied an automated thresholding technique following the protocol of Beckschäfer (2015). We derived gap fraction values and converted them to canopy closure values, to finally calculate the mean canopy closure percentage per plot (Osen et al. 2021). To estimate the understory vegetation cover of each plot, we adapted the protocol of Van Der Maarel (1966), taking into account the understory such as shrubs, saplings, and non-woody plants. We took photographs with a view from zero to three meters above the ground in each cardinal direction from the plot center. We divided each photograph into six 0.5 m layers and estimated the understory vegetation cover in % for each layer. Then, we averaged the understory vegetation cover value from all layers on all photographs to represent a single understory vegetation cover value (in %) for each plot (Schwab et al. 2021). We measured the diameter and length of all lying deadwood with a midpoint diameter ≥ 10 cm and length ≥ 100 cm. We excluded deadwood that was already decomposed into powder. We used the equation “deadwood volume = [(π * diameter2)/4] * length” to calculate the volume of each lying deadwood piece (Rondeux et al. 2012). We summed up the volume of all lying deadwood pieces per sample area, then upscaled the volume of lying deadwood per hectare. As landscape parameters, we calculated the landscape forest cover percentage within a 250 m radius buffer surrounding our plots using 2017 landscape forest cover data (Vieilledent et al. 2018).

Data analysis

We combined data from bait and pitfall traps into a plot/species presence/absence matrix and used the R version 3.6.3 program for all analysis (R Core Team 2020).

Comparison of ant species richness and composition

To compare ant species richness between land-use types, we ran generalized linear mixed models (GLMMs) with ant species richness as the response variable, land-use types as the explanatory variable, and Poisson distribution as family, using the glmmTMB function of the glmmTMB package (Brooks et al. 2017). We set village and old-growth forest sites as a random factor to account for potential spatial autocorrelation. We used Tukey's honestly significant difference (Tukey HSD) with Bonferroni correction for pairwise comparison between land-use types.

We performed a permutational multivariate analysis of variance (PERMANOVA, 999 permutations) using the adonis function of the package Vegan (Oksanen et al. 2018) and the pairwise.adonis function with False discovery rate correction of the package pairwiseAdonis (Arbizu 2017) to assess differences in species composition among and between land-use types. Then, we performed a permutational multivariate analysis of dispersion (PERMDISP, 999 permutations) using the betadisp function of the package Vegan to test the homogeneity of dispersion among land-use types (Oksanen et al. 2018). A homogenous dispersion implies that the difference in species composition among land-use types from PERMANOVA is explained by the difference in location of the centroids. We found that heterogeneous dispersion significantly contributes to the differences in endemic (PERMDISP, Df = 6, F = 5.07, p = 0.002) and exotic (PERMDISP, Df = 6, F = 21.65, p = 0.001) but not non-endemic (PERMDISP, Df = 6, F = 1.45, p = 0.204) ant species composition between our land-use types. We visualized the community structure of each land-use type using non-metric multidimensional scaling (NMDS). We used the dimcheckMDS function of the package goeveg to select any number of dimensions with a good stress value (stress < 0.2) for the NMDS (Goral and Schellenberg 2021). We used Jaccard dissimilarity distance for PERMANOVA, PERMDISP, and NMDS. Additionally, we used the upset function of the package UpSetR to visualize the number of unique and shared species between land-use types (Gehlenborg 2019).

Environmental parameters as drivers of ant species richness

Since we aimed to provide applied land management options for ant species conservation in the agricultural matrix, we excluded old-growth forest sites in our models when assessing the environmental parameters driving ant species richness. Additionally, we excluded rice paddy and herbaceous fallow in our model since they do not contain trees, therefore no canopy closure and deadwood, which substantially can affect our model results by driving too much the effect on species richness.

Prior to building our models, we performed a correlation test between all explanatory variables to assess the possible effects of multicollinearity. In case the explanatory variables were strongly correlated (Spearman |r|> 0.7 (Dormann et al. 2013)), we kept only one of them. We found that canopy closure, stem density, and tree species richness were highly correlated (Supplementary Material S5). We retained canopy closure in our models because stem density and tree richness data were missing in two plots. With GLMMs, we set a full model with ant species richness as the response variable, canopy closure, deadwood, understory vegetation, and forest cover as explanatory variables, and village as a random factor. Since our response variable was count data, we first used the Poisson family for our models. We performed a stepwise logistic regression using the step function to identify the best-fit models. We considered models with the lowest AIC score to explain and discuss the response of ant species richness to environmental parameters. We tested for any misspecification problems in the models such as over-or underdispersion, zero inflation, and quantile deviations using the DHARMa package (Hartig 2020). We found underdispersion in our models with exotic ant species richness and corrected it by using the Conway–Maxwell–Poisson (COMPOIS) distribution (Huang 2017).

Results

Ant species richness across land-use types

Old-growth forest, forest fragment, and forest-derived vanilla agroforest had significantly higher endemic ant species richness than the other land-use types (p < 0.01, Fig. 2a, Supplementary Material S6). Rice paddy had the lowest endemic ant species richness (Fig. 2a, Supplementary Material S6). Old-growth forest and forest fragment had significantly lower exotic ant species richness than the previously burned land-use types and rice paddy (p < 0.01, Fig. 2b, Supplementary Material S7). Rice paddy had significantly lower non-endemic native ant species richness compared to forest fragment (p < 0.01), forest-derived vanilla agroforest (p = 0.024), fallow-derived vanilla agroforest (p < 0.01), and woody fallow (p < 0.01) (Fig. 2c, Supplementary Material S8).

Fig. 2
figure 2

Ant species richness across land-use types: a endemic, b exotic ant species c non-endemic native. Non-shared letters between land-use types indicate a significant difference (Tukey’s HSD multicomparison with Bonferroni correction, p-value < 0.05)

Species composition of endemic, exotic, and non-endemic native ant across land-use types

We found a significant gradient in the endemic (PERMANOVA, df = 6, F = 2.96, R2 = 0.23, p = 0.001), exotic (PERMANOVA, df = 6, F = 8.88, R2 = 0.42, p = 0.001), and non-endemic native (PERMANOVA, df = 6, F = 5.93, R2 = 0.35, p = 0.001) ant species composition across land-use types (Fig. 3). Old-growth forest significantly differed from all land-use types in both endemic and exotic ant species composition (Fig. 3a, b, Supplementary Material S9 and S10). Forest-derived vanilla agroforest was similar to forest fragment in endemic, exotic, and non-endemic native ant species composition, whereas forest-derived vanilla agroforest differed significantly from fallow-derived vanilla agroforest (Fig. 3a–c, Supplementary Material S9–S11). Endemic and non-endemic native ant species composition was similar among all formerly burned land-use types, whereas differences in exotic species composition among formerly burned land-uses (e.g. rice paddy vs. woody fallow; herbaceous fallow vs. fallow-derived vanilla agroforest) occurred (Fig. 3a–c, Supplementary Material S9–S11). Old-growth forest had the highest number of unique endemic ant species (9 species), followed by forest-derived vanilla agroforest (6 species). Forest fragment shared all its endemic species to all land-use types in the agricultural matrix (Fig. 4a). All exotic and non-endemic native ant species were shared between land-use types (Fig. 4b, c).

Fig. 3
figure 3

Ant species composition across land-use types. Non-metric multidimensional scaling plot showing the species composition pattern of a endemic (k = 5, linear fit R2 = 0.959, non-metric fit R2 = 0.996, stress = 0.065), b exotic (k = 5, linear fit R2 = 0.964, non-metric fit R2 = 0.997, stress: 0.058) and c non-endemic native ants (k = 5, linear fit R2 = 0.987, non-metric fit R2 = 0.999, stress = 0.038). Each point represents one plot. We used jittering with width = 0.2 and height = 0.2 to avoid overplotting. Ellipses show the 95% confidence intervals for the estimated center of each land-use type fitted into the spatial ordination. Non-overlapping ellipses indicate significant difference in species composition between land-use types (in line with the pairwise comparison in Supplementary Material S9-S11)

Fig. 4
figure 4

Upset plots showing the number of unique and shared a endemic, b exotic, and c non-endemic native ant species across land-use types. The upper part of each graph shows the number of species found in the land-use type indicated by the dots in the lower part. The simple dots without connecting lines represent the unique species found in the land-use type. As an example, the old-growth forest has 9 unique endemic species. Two or more dots connected by a line indicate a shared species between two or more land-use types, which correspond to the number on the bar of the upper part of the graph. For example, old-growth forest and forest fragment share: 1st connecting line = 4, 2nd = 2, 3rd = 5, 4th = 1, 5th = 2, 6th = 1, 7th = 1, 8th = 1, making up in total 17 shared species

Environmental factors driving ant species richness in the agricultural matrix

We found that higher canopy closure (estimate = 0.36837, standard error = 0.07852, z-value = 4.692, p < 0.001) and landscape forest cover (estimate = 0.12842, standard error = 0.06535, z-value = 1.965, p = 0.0494) were positively related to endemic ant species richness (Fig. 5a, d). In contrast, higher canopy closure (estimate = − 0.18884, standard error = 0.06160, z-value = − 3.066, p = 0.00217) and landscape forest cover (estimate = − 0.21259, standard error = 0.07685, z-value = − 2.766, p = 0.00567) were negatively related to exotic species richness (Fig. 5b, e). We found no significant association between endemic and exotic ant species richness with deadwood volume and understory vegetation cover (Fig. 5g, h, j, k). None of the environmental parameters significantly affected non-endemic native ant species richness (Fig. 5c, f, i, l).

Fig. 5
figure 5

Endemic and exotic ant species richness in relation to canopy closure, landscape forest cover, understory vegetation cover, and deadwood volume in north-eastern Madagascar (across forest fragment, forest- and fallow-derived vanilla agroforests, and woody fallow plots). Solid regression lines show significant model predictions (p-value < 0.05), whereas dashed lines show a non-significant relationship. Ribbons indicate 95% confidence intervals

Discussion

Our study showed that smallholder land use differentially affected endemic and exotic ant communities in north-eastern Madagascar, a global biodiversity hotspot. Endemic and non-endemic native ant species richness was not significantly affected by forest conversion to forest-derived vanilla agroforests, but endemic ant richness markedly decreased when forests were transformed via slash-and-burn practices to hill rice cultivation. On the contrary, forest transformation promoted exotic ants, with higher exotic species richness in land-uses in the agricultural matrix compared to old-growth forest sites. In addition, we found that endemic ant species composition was different in the old-growth forest compared to all other land-use types, highlighting the uniqueness of old-growth forests for endemic ant species that are less resilient to disturbance. The exotic ant community in the old-growth forest was only a small subset of the exotic community in the agricultural matrix. In regards to vanilla, endemic, exotic, and non-endemic native ant species composition differed between forest- and fallow-derived vanilla agroforests. Finally, higher canopy closure and landscape forest cover were associated with higher endemic ant species richness but lower exotic ant species richness, suggesting an opportunity for management measures conserving endemic ants as well as mitigating the invasion of exotic ants.

Ant species richness response to land-use change

Although the transformation of forests to agroforests usually leads to habitat degradation and species loss (Martin et al. 2020a), our study showed that the endemic ant species richness was not significantly affected by forest conversion to forest-derived vanilla agroforests. This could be explained by the complex structure of forest-derived vanilla agroforests, which still retain a considerable proportion of the original forest structure (Osen et al. 2021), possibly providing diverse food resources and microhabitats for many endemic ant species. Our finding corroborates research showing that complex agroforests can harbor the same or even higher ant species richness compared to forests (Schroth et al. 2004; Philpott et al. 2008).

In contrast, endemic ant species richness dropped by up to 90% when forests were transformed via slash-and-burn agriculture practices (from 9.6 mean species richness in the old-growth forest to 0.9 in herbaceous fallow). Even after years of fallow succession from herbaceous to woody fallows, the endemic ant species richness still did not recover to reach the species levels found in the forests. Slash-and-burn constitutes an extreme form of land conversion because it consists of a complete removal of the vegetation through burning (Styger et al. 2007). This potentially leads to a direct loss of microhabitats and resources for many endemic ant species, thus forcing them to find another suitable habitat to survive.

Rice paddy is not part of the slash-and-burn cultivation cycle, but we included this land-use type in our study as it is very common in the study area and refers to permanent and intensive land use. Rice paddy is characterized by mostly inundated areas for rice cultivation and banks covered with herbaceous plants which are frequently walked, thereby limiting the availability of microhabitats such as leaf litter and deadwood, which are important nesting sites for many ant species (Queiroz et al. 2013). This could explain our finding that rice paddy exhibited the lowest endemic and non-endemic native ant species richness compared to the other land-use types.

We provide evidence that exotic ant species are positively affected by human disturbance (Folgarait 1998; Rizali et al. 2010). We found that the old-growth forest had five times lower exotic ant species richness than herbaceous fallow. This could be because exotic ant species generally have a high capacity for adaptation and competition allowing them to co-occur with or dominate native ant species in disturbed habitats (Wetterer 2007). It is important to note that the invasion of exotic ant species could harm native (endemic) ant species (Holway et al. 2002). For example, in Indonesia, the presence of invasive yellow crazy ants, Anoplolepis gracilipes, reduced native ant species in cacao agroforests (Bos et al. 2008). Also, in Australia's monsoonal tropics, Pheidole megacephala, the so-called African big-headed ant, constitutes a big threat to the native ant community because of their aggressive behavior (Hoffmann et al. 1999). However, evidence of the impact of exotic ant species on Madagascar’s native ant fauna is scarce. Only Dejean et al. (2010) found that the white-footed ant, Technomyrmex albipes, exhibited aggressive competition on food resources towards the native ant community. This suggests the need for further research on competition between exotic ants and native ant species in Madagascar.

Ant species composition response to land-use change

We found a clear difference in endemic ant species composition in the old-growth forest compared to all other land-use types, highlighting the uniqueness of the old-growth forest. Old-growth forests, compared to all other land-use types, had nine unique endemic ant species, which according to the AntWeb (2020) database, have never been found in a disturbed habitat. This finding stresses the need to safeguard the old-growth forest to ensure the conservation of endemic ant species that are more sensitive to disturbance. The uniqueness of our old-growth forest sites is also consistent with plant species composition (Osen et al. 2021; Raveloaritiana et al. 2021) and bird species richness (Martin et al. 2021).

We also found a pronounced compositional difference in endemic and non-endemic native ant species between unburned (forest fragment and forest-derived vanilla agroforest) and land-use types derived from previous slash-and-burn cultivation (fallows and fallow-derived vanilla agroforest) in the agricultural matrix. This highlights the negative effect of past burning in endemic and non-endemic native ant species composition. Our findings are also in line with another study in the same system, highlighting the change in endemic and native herbaceous plant species composition due to slash-and-burn cultivation (Raveloaritiana et al. 2021).

Besides, our study showed a clear distinction of the exotic ant species composition between unburned and previously burned land-use types and rice paddy. Here, we highlight that old-growth forest and forest fragment harbor only a small subset of the exotic ant community occurring in the agricultural matrix. Only two exotic species occurred in the old-growth forest, whereas six species from the exotic ant community in the agricultural matrix occurred in forest fragments. This finding provides evidence that old-growth forest is more resistant to the arrival of certain exotic species than the forest fragment. The susceptibility of the small remnant forest fragment could be due to their proximity to surrounding agricultural lands which serve as a gateway for exotic ant species (Assis et al. 2018).

Management opportunities for endemic ant conservation in the agricultural matrix

Identifying management practices that maintain endemic biodiversity in agricultural landscapes presents a great opportunity for biodiversity conservation (Kremen and Merenlender 2018). In our study, we found a contrasting effect of canopy closure and landscape forest cover on endemic and exotic ant species richness. This provides clear evidence that keeping higher canopy closure and maintaining a high landscape forest cover can conserve endemic ant species while reducing exotic ant species in the agricultural matrix. For vanilla agroforests specifically, a greater endemic ant species richness could be achieved by promoting trees in fallow-derived and maintaining trees in forest-derived vanilla agroforests. This offers a win–win opportunity for vanilla farmers and the conservation of endemic ant species as a high canopy in vanilla agroforests does not conflict with high vanilla yields (Martin et al. 2020b). Although we did not include tree species richness in our models, it is important to highlight that increasing tree species richness could positively affect ant species richness as shown by other studies (Ribas et al. 2003; Vasconcelos et al. 2019). This suggests that high tree diversity should be maintained in the agricultural matrix to benefit endemic ant species. Here, in particular, the maintenance of already existing forest-derived vanilla agroforests is recommended, as their tree species richness is more similar to forest fragments and old-growth forest than to the other studied land-use types (Osen et al. 2021).

On the other hand, the positive influence of landscape forest cover on endemic species richness suggests that forest fragments could be a source of endemic ant species for the different land-use types in the agricultural matrix (Solar et al. 2016). A previous study also supports that a greater ant species richness within agricultural land can be boosted by large patches of adjacent forests (Lucey et al. 2014). Similarly, in our study, the forest fragment shared all of its endemic ant species with the land-use types in the agricultural matrix. This suggests that remnant forests embedded in the agricultural landscape in north-eastern Madagascar are key to preserve the endemic ant diversity in the agricultural matrix.

Conclusion

Our study showed not only the uniqueness of old-growth forest in preserving unique endemic ant species, but also its resistance to the arrival of most exotic ant species. Despite rapidly occurring land-use change in north-eastern Madagascar, the agricultural matrix, still harbors considerable amounts of endemic and non-endemic native ant species. We conclude that preserving remnant forest fragments and promoting vanilla agroforests with a greater canopy closure in the agricultural matrix are important management strategies to complement the role of old-growth forests for endemic ant conservation in north-eastern Madagascar.