In situ XRD involves placing the catalyst inside a specialized reaction chamber that allows for the control of temperature, pressure, and gas composition while simultaneously performing X-ray diffraction. The X-rays interact with the crystalline structures of the catalyst, producing diffraction patterns that can be analyzed to determine phase compositions and structural changes.