X-Ray Diffraction (XRD) is a technique used to analyze the crystal structure of materials. X-rays are produced when high-energy electrons strike a metal target, and are collimated and passed through a monochromator to produce a narrow beam. When the beam interacts with a crystalline sample, diffraction occurs according to Bragg's law. The diffraction pattern is measured by detectors and analyzed to determine properties such as lattice parameters and crystal structure. Common applications of XRD include identifying crystalline phases, measuring strain, and analyzing thin film materials.