X-ray crystallography is a technique used to determine the atomic structure of crystals. X-rays are directed at a crystal and the angles and intensities of the diffracted beams are measured to build a 3D image of electron density within the crystal. This allows the positions of atoms and their bonds to be determined. Different methods like Laue photography, Bragg diffraction, and powder diffraction are used depending on the crystal type. X-ray crystallography has applications in characterizing materials and determining molecular structures.