Baculoviruses have been used as biopesticides for the control of Lepidoptera larvae. However, solar UV radiation reduces the activity of baculovirus. In this study, an UV endonuclease, Bm65, was found encoded in the genome of Bombyx mori nuclear polyhedrosis virus (BmNPV). Bm65 (the ortholog of AcMNPV orf79) was guided by a key nuclear localization signal to enter the nucleus and accumulated at UV-induced DNA damage sites. Subsequent results further showed that Bm65-mediated DNA damage repair was not the only UV damage repair pathway of BmNPV. BmNPV also used host DNA repair proteins to repair UV-induced DNA damage. In summary, these results revealed that Bm65 was very important in UV-induced DNA damage repair of BmNPV, and BmNPV repaired UV-damaged DNA through a variety of ways. IMPORTANCE Baculovirus biopesticides are environmentally friendly insecticides and specifically infect invertebrates. UV radiation from the sunlight greatly reduces the activity of baculovirus biopesticides. However, the molecular mechanisms of most baculoviruses to repair UV-induced DNA damage remain unclear. Nucleotide excision repair (NER) is a major DNA repair pathway that removes UV-induced DNA lesions. At present, there are few reports about the nucleotide excision repair pathway in viruses. Here, we showed for the first time that the baculovirus Bm65 endonuclease actually cleaved UV-damaged DNA. Meanwhile, we found that BmNPV used both viral-encoded enzymes and host DNA damage repair proteins to reverse UV-induced DNA damage. These results will provide a reference for the research of UV damage repair of other viruses.