The drivers of genetic diversity (GD) are poorly understood at the global scale. Here the authors show, for terrestrial mammals, that within-species GD covaries with phylogenetic diversity and is higher in locations with more stable past climates. They also interpolate GD for data-poor locations such as the tropics.