In X-ray diffraction, a beam of X-rays is directed at the catalyst material. When these X-rays interact with the periodic atomic planes within the crystal, they are diffracted at specific angles. By measuring the angles and intensities of these diffracted beams, a diffraction pattern is obtained. This pattern is then analyzed to derive structural information about the catalyst.