While biotic interactions often impose selection, species and populations vary in whether they are locally adapted to biotic interactions. Evolutionary theory predicts that environmental conditions drive this variable local adaptation by altering the fitness impacts of species interactions. To investigate the influence of an environmental gradient on adaptation between a plant and its associated rhizosphere biota, we cross-combined teosinte (Zea mays ssp. mexicana) and rhizosphere biota collected across a gradient of decreasing temperature, precipitation, and nutrients in a greenhouse common garden experiment. We measured both fitness and phenotypes expected to be influenced by biota, including concentrations of nutrients in leaves. Independent, main effects of teosinte and biota source explained most variation in teosinte fitness and traits. For example, biota from warmer sites provided population-independent fitness benefits across teosinte hosts. Effects of biota that depended on teosinte genotype were often not specific to their local hosts, and most traits had similar relationships to fitness across biota treatments. However, we found weak patterns of local adaptation between teosinte and biota from colder sites, suggesting environmental gradients may alter the importance of local adaptation in teosinte-biota interactions, as evolutionary theory predicts.