XRD works by directing X-rays at a catalyst sample and measuring the angles and intensities of the rays that are scattered by the sample. This data is used to determine the crystal structure, phase composition, and other structural parameters. XRD is particularly useful for identifying crystalline phases and analyzing the purity of the catalyst.