A popular science podcast about the diffraction method:
When X-rays interact with a crystalline compound, one gets a unique diffraction pattern,
which can be used to obtain a number of structural parameters (lattice parameters, atoms positions inside the unit cell,
atoms mean square displacements (MSD), crystallites size and texture, internal stress)
describing the atomic structure of the compound.
The X-ray diffraction pattern of a pure compound is like a "fingerprint", thus it is ideally
suited for characterization and identification of polycrystalline phases.
An example of the 1D and 2D diffraction patterns is shown below: