Diffraction is the spreading of waves that occurs when waves pass through a narrow opening or around a small obstacle. When diffraction occurs, the direction and velocity of waves may change but the wavelength and frequency remain unchanged. The amplitude of diffracted waves is smaller than the incident waves as the wave energy spreads out over a larger surface area. Diffraction is more pronounced for waves passing through narrow openings or around small obstacles when the size of the opening or obstacle is smaller than the wavelength of the waves. Diffraction has various applications in everyday life such as in harbors where sea walls use diffraction of ocean waves to protect boats.