X-ray diffraction is based on constructive interference of monochromatic X-rays and a crystalline sample at different angles. The X-ray diffraction angle depends on the composition and structure of the substance present in the sample. The obtained information can indicate the type of compound contained in the sample and can be used to study the structure of the crystals of the sample