An XRD instrument typically consists of an X-ray source, a sample holder, and a detector. The X-ray source generates X-rays that are directed at the sample. When the X-rays interact with the crystalline structure, they are scattered in specific directions, creating a diffraction pattern. The detector measures the intensity and angles of the scattered X-rays, which are then analyzed to produce a diffraction pattern that reveals the material's structural information.