Lichens are important components of high-latitude boreal and Arctic habitats. While stress tolerant, they are among the most sensitive ecosystem components to climate change, in particular, an increase in ultraviolet light (UV) arising from polar ozone depletion and deforestation. This study is the first to explore the effects of UV-B on gene expression in lichens to predict metabolic pathways involved in tolerance. Using transcriptome profiling and bioinformatic analyses, here we studied the effects of UV-B on gene expression in lichens using Lobaria pulmonaria (L.) Hoff. as a model species. UV-B exposure causes significant browning of the upper cortex of the thallus, which correlates to an increased expression of biosynthetic gene clusters involved in the synthesis of eu- and allomelanins and melanin precursors. Based on transcriptome analyses, we suggest that the biosynthesis of melanins and other secondary metabolites, such as naphthalene derivates, tropolones, anthraquinones, and xanthones, is a trade-off that lichens pay to protect essential metabolic processes such as photosynthesis and respiration. Expression profiles of general stress-associated genes, in particular, related to reactive oxygen species scavenging, protection of proteins, and DNA repair, clearly indicate that the mycobiont is the more UV-B-responsive and susceptible partner in lichen symbiosis. Our findings demonstrate that UV-B stress activates an intricate gene network involved in tolerance mechanisms of lichen symbionts. Knowledge obtained here may enable the prediction of likely effects on lichen biodiversity caused by climate change and pollution.