X-ray crystallography is a scientific technique used to determine the atomic and molecular structure of crystals. When x-rays strike a crystal, the beam diffracts into specific directions. This diffraction pattern can be analyzed to reveal the nature and structure of the crystal lattice. Bragg's law defines the relationship between x-ray wavelength, diffraction angle, and interplanar spacing and is used to calculate crystal structures from diffraction data. X-ray crystallography is widely used to determine protein structures and has applications in pharmaceuticals, materials science, and other fields.