Adaptive genetic variation to drought in a widely distributed conifer suggests a potential for increasing forest resilience in a drying climate.