Enzyme structure reveals how cells avoid DNA damage caused by ultraviolet rays.