The oldest method of X-ray crystallography is X-ray diffraction (XRD). X-rays are fired at a single crystal and the way they are scattered produces a pattern. These patterns are used to work out the arrangement of atoms inside the crystal.