Ultraviolet irradiation, especially ultraviolet B (UVB) irradiation, increases the risks of various skin diseases, such as sunburn, photo-aging and cancer. However, few drugs are available to treat skin lesions. Therefore, the discovery of drugs to improve the health of irradiated skin is urgently needed. Fibroblast growth factor 21 (FGF21) is a metabolic factor that plays an important role in the protection and repair of various types of pathological damage. The effects of FGF21 on skin injury caused by UVB-irradiation were the focus of this study. We found that UVB irradiation promoted the expression of FGF21 protein in mouse epidermal cells, and exogenous recombinant human FGF21 (rhFGF21) protected mouse skin tissue against UVB-induced injury. RhFGF21 inhibited the inflammatory responses and epidermal cell apoptosis as well as promotion of autophagy in UVB-irradiated mice. Moreover, we found that rhFGF21 protected HaCaT cells against UVB-induced apoptosis, and the protective effect was enhanced by treatment with an autophagy activator (rapamycin) but was inhibited by treatment with an autophagy inhibitor (3-methyladenine, 3MA). AMP-activated protein kinase (AMPK), as a cellular energy sensor, regulates autophagy. RhFGF21 increased the expression of p-AMPK protein in epidermal cells irradiated with UVB in vivo and in vitro. Moreover, rhFGF21 increased autophagy levels and the viability were diminished by treatment with an AMPK inhibitor (compound C). RhFGF21 protects epidermal cells against UVB-induced apoptosis by inducing AMPK-mediated autophagy.