Currently, due to the increasing impact of anthropogenic factors and changes in solar activity, the temperature on Earth is rising, posing a threat to biodiversity. Lichens are among the most sensitive organisms to climate change. Elevated ambient temperatures can have a significant impact on lichens, resulting in more frequent and intense drying events that can impede metabolic activity. It has been suggested that the possession of a diverse sterol composition may contribute to the tolerance of lichens to adverse temperatures and other biotic and abiotic stresses. The major sterol found in lichens is ergosterol (ERG); however, the regulation of the ERG biosynthetic pathway, specifically the step of epoxidation of squalene to 2,3-oxidosqualene catalyzed by squalene epoxidase during stress, has not been extensively studied. In this study, we used lichen Lobaria pulmonaria as a model species that is well known to be sensitive to air pollution and habitat loss. Using in silico analysis, we identified cDNAs encoding squalene epoxidase from L. pulmonaria, designating them as LpSQE1 for the mycobiont and SrSQE1 for the photobiont Symbiochloris reticulata. Our results showed that compared with a control kept at room temperature (+20 °C), mild temperatures (+4 °C and +30 °C) did not affect the physiology of L. pulmonaria, assessed by changes in membrane integrity, respiration rates, and PSII activity. An extreme negative temperature (-20 °C) noticeably inhibited respiration but did not affect membrane stability. In contrast, treating lichen with a high positive temperature (+40 °C) significantly reduced all physiological parameters. Quantitative PCR analysis revealed that exposing thalli to -20 °C, +4 °C, +30 °C, and +40 °C stimulated the expression levels of LpSQE1 and SrSQE1 and led to a significant upregulation of Hsps. These data provide new information regarding the roles of sterols and Hsps in the response of lichens to climate change.