Charge-transfer reactions in proteins are important for life, such as in photolyases which repair DNA, but the role of structural dynamics remains unclear. Here, using femtosecond X-ray crystallography, we report the structural changes that take place while electrons transfer along a chain of four conserved tryptophans in the Drosophila melanogaster (6-4) photolyase. At femto- and picosecond delays, photoreduction of the flavin by the first tryptophan causes directed structural responses at a key asparagine, at a conserved salt bridge, and by rearrangements of nearby water molecules. We detect charge-induced structural changes close to the second tryptophan from 1 ps to 20 ps, identifying a nearby methionine as an active participant in the redox chain, and from 20 ps around the fourth tryptophan. The photolyase undergoes highly directed and carefully timed adaptations of its structure. This questions the validity of the linear solvent response approximation in Marcus theory and indicates that evolution has optimized fast protein fluctuations for optimal charge transfer. Photoinduced electron transfer forms the basis for photosynthesis and DNA repair. Ultrafast structural changes recorded for a DNA-repairing photolyase now reveal specific and directed protein motions accompanying the electron transfer.