For X-rays, the phenomenon of diffraction by crystals was a natural consequence of the idea that X-rays are waves analogous to light and differ from it only by having a smaller wavelength.