X-ray crystallography is a technique used to determine the atomic structure of crystals through x-ray diffraction, allowing for the analysis of various compounds. It includes methods such as x-ray absorption, fluorescence, and diffraction, with diffraction being the most significant for structural identification. The process involves protein crystallization, x-ray exposure to crystals, and the creation of electron density maps to analyze molecular structures accurately.