X-ray diffraction is a technique that uses X-rays to determine the atomic and molecular structure of crystals. When X-rays hit a crystal, they cause the atoms to diffract into specific patterns determined by Bragg's law. By analyzing these diffraction patterns, information about the crystal structure such as lattice parameters and spacing between atomic planes can be determined. Common applications of XRD include identifying materials and determining their purity, structure, and properties.