Root-associated microbial communities in sugar maple seedlings are driven by soil pH, calcium, and distance to trees, with elevation having a minor role. Changes in fungal communities mediate soil pH effects on growth. These findings are crucial for understanding tree range expansion amid climate change.