In lichen symbioses, fungal secondary metabolites provide UV protection on which lichen algae such as trebouxiophycean green algae-the most prominent group of photobionts in lichen symbioses-sensitively depend. These metabolites differ in their UV absorbance capability and solvability, and thus vary in their propensity of being leached from the lichen body in humid and warm environments, with still unknown implications for the global distribution of lichens. In this study covering more than 10,000 lichenised fungal species, we show that the occurrence of fungal-derived metabolites in combination with their UV absorbance capability and their probability of being leached in warm and humid environments are important eco-evolutionary drivers of global lichen distribution. Fungal-derived UV protection seems to represent an indirect environmental adaptation in which the lichen fungus invests to protect the trebouxiophycean photobiont from high UV radiation in warm and humid climates and, by doing this, secures its carbon source.