Diffraction refers to various phenomena that occur when a wave encounters an obstacle or a slit. In general, diffraction is defined as the spreading or bending of waves as they pass round the edge of an obstacle or through an opening whose size is roughly the same as the wavelength of the waves. The disturbed waves then interfere to produce ripple-like patterns. Diffraction is a property that distinguishes between wavelike and particle-like behavior.