X-ray diffraction (XRD) involves directing X-rays at a crystalline material. The X-rays are scattered by the electrons in the atoms, creating a diffraction pattern. This pattern can be analyzed to determine the lattice structure and other crystallographic parameters. XRD is particularly useful in identifying phases in nanoparticles and understanding their crystallinity.