This lecture covers the techniques and applications of synchrotrons and x-ray free-electron lasers in crystal diffraction. The instructor explains how to determine the phases of scattered waves, the structure factor, and high-symmetry bases. Topics include scattering by atoms within a unit cell, amplitudes of scattered waves, and the phase problem in crystallography.