As the outermost layer of the human body, the skin suffers from various external factors especially light damage, among which ultraviolet B (UVB) irradiation is common and possesses a relatively high biological damage capacity. Pyroptosis is a newly discovered type of programmed cell death, which can induce cell rupture and induce local inflammatory response. However, the molecular mechanisms of pyroptosis in photodamaged skin is poorly understood. Baicalin, a flavonoid extracted from the desiccated root of Scutellaria baicalensis Georgi (Huang Qin). Despite its antioxidant abilities, whether baicalin protects skin by attenuating UVB-induced pyroptosis remains unclear, which was the aim of this study. The UVB-induced acute skin damage model was established by using human immortalized keratinocytes (HaCaT cells) and Kunming (KM) strain mice. The protective dose selection for baicalin is 50 μM in vitro and 100 mg/kg in vivo. In in vitro study, UVB irradiation significantly decreased cell viability, increased cell death and oxidative stress in HaCaT cells, while pretreatment with baicalin improved these phenomena. Furthermore, the baicalin pretreatment notably suppressed nuclear factor kappa B (NF-κB) translocation, the NLRP3 inflammasome activation and gasdermin D (GSDMD) maturation, thus effectively attenuating UVB-induced pyroptosis. In in vivo study, the baicalin pretreatment mitigated epidermal hyperplasia, collagen fiber fragmentation, oxidative stress and pyroptosis in UVB-irradiated mouse skin. In a nutshell, this study suggests that baicalin could be a potential protective agent to attenuate acute skin damage induced by UVB irradiation through decreasing oxidative stress and suppressing NF-κB/NLRP3/GSDMD-involved pyroptosis.