Although biological conservation has traditionally focused on the protection of pristine areas, it is becoming increasingly evident that efforts should also be made toward the maintenance of biological diversity in human‐managed ecosystems. We evaluated the potential role of scattered, remnant trees in enhancing ant diversity in agricultural lands within a biodiversity hotspot, namely the Cerrado savannas of central Brazil. Ant collections were performed in, beneath, and away from the crowns of a native tree species growing in planted pastures, soy fields, and in small (<400 ha) savanna reserves. Significantly more ant species were found beneath than 30 m away from scattered trees. The magnitude of this effect was similar in soy fields and in pastures at all scales of our analyses, except at the landscape scale where the effect was comparatively greater in soy fields. Most of the species that occurred more frequently beneath than away from trees nest on ground, indicating that the conservation value of scattered trees goes beyond the mere protection of arboreal ant species. Soy plantations presented a particular species‐poor ground‐dwelling fauna when compared with savannas, whereas differences in the number and composition of arboreal species were less marked. In contrast, the diversity of arboreal‐ and ground‐dwelling ants recorded in and beneath pasture trees was nearly as high as the one found in savannas. It is suggested that pasture trees can have an important value for ant conservation off reserves, particularly in regions where most of the native vegetation has already been cleared.