How does X Ray Diffraction Work?

X-ray diffraction can be used to make an exclusive identification of certain substances. When the x-ray goes through the crystals a unique pattern is formed. This pattern is what is used to make the identification.