Catalysis of the reaction: cyclobutadipyrimidine (in DNA) = 2 pyrimidine residues (in DNA). This reaction represents the reactivation of irradiated DNA by light.
deoxyribonucleic cyclobutane dipyrimidine photolyase activity