What is the basic principle of x- ray diffraction?
The idea is that, due to the small wavelength of X-rays, atoms can serve as a diffraction grid – causing diffraction patterns. (If you don’t know about diffraction, I suggest you search in the questions for “diffraction”, or ask a separate question for diffraction.) Crystals are good for this, because of their regular structure.