X-ray crystallography uses diffraction of X-rays by the periodic crystal structure of molecules to determine their structure. Crystals of the molecule are bombarded with X-rays, which produce a diffraction pattern. Analysis of this pattern reveals the location of atoms within the crystal unit cell. Researchers first crystallize molecules and collect diffraction data, then use computers to process the data and deduce the molecular structure. This technique has provided insights into materials science, biology, and medicine by revealing atomic-scale structures.