This lecture covers the techniques and applications of synchrotrons and X-ray free-electron lasers, focusing on the phase problem in crystallography. It discusses the construction of the structure factor, early successes in solving the phase problem, and various approaches including chemistry-based methods and direct/iterative techniques.