ZnO has a strong UV absorption capacity, but also has a high photocatalytic performance, which limits its application in the field of UV shielding. In order to explore the possibility of ZnO's application in the field of ultraviolet shielding, this article uses VASP to construct a ZnO/CeO2 heterojunction and performs electronic and optical simulation calculations on it. Then lignin is used to combine with the synthesized ZnO/CeO2 heterojunction to prepare lignin-modified nano-ZnO/CeO2 heterojunction. Through the FT-IR, XRD, SEM, UV-Vis-DRS means the characterization of samples. The UV shielding properties of the synthesized samples were investigated with methylene blue as the protection object. The results show that the light absorption performance of the samples at 280~420 nm is better than that of ZnO/CeO2 samples. The retention rate of methylene blue for 70 min under UV irradiation was 77.92%, indicating that the synthesized sample was a UV shielding material with high UV shielding properties and low photocatalytic activity.