X-ray crystallography uses X-rays to determine the atomic and molecular structure of crystals. X-rays have wavelengths small enough (~0.1nm) to probe the distances between atoms in crystals. When X-rays hit a crystal, they cause the electrons of individual atoms to scatter the X-rays in all directions. The scattered X-rays interfere with one another, producing a diffraction pattern that can be used to reveal the crystal structure. Crystals are required because they produce repeated patterns that amplify the X-ray scattering, making it possible to determine atomic positions.