Inducing random mutation of C. elegansDNA is a widely used technique to investigate gene and protein function. Here the authors introduce a method of optogenetic mutagenesis, driving the generation of reactive oxygen species, which avoids the use of toxic chemicals.