X-rays are electromagnetic waves wavelengths and may be diffracted by suitable diffracting centres. However, the diffraction effects are appreciable only when the diffracting apertures are of the order of the wavelength, i.e., of the order of 0.1 nm. This is almost the size of an atom and it is difficult to construct slits with such small gaps so that X-rays can be appreciably diffracted.
In solid crystals, atoms are arranged in fairly regular pattern with interatomic gaps of the order of 0.1 nm. Common salt is an example of such a crystalline solid. Almost all the metals at ordinary temperature are crystalline. These metals three-dimensional gratings for the diffraction of X-rays.

The structure of a solid can be viewed as a series of parallel planes of atoms separated by a distance d (figure 44.7). Suppose, an X-ray beam is incident on a solid, making an angle with the planes of the atoms. These X-rays are diffracted by different atoms and the diffracted rays interfere. In certain directions, the interference is constructive and we obtain strong reflected X-rays. The analysis shows that there will be a strong reflected X-ray beam only if