Diffraction patterns occur when waves encounter an obstacle or aperture, causing them to bend and spread out, resulting in a pattern of alternating light and dark bands or fringes. This phenomenon is a fundamental demonstration of wave behavior, illustrating the principle of superposition and the wave nature of light and other waves.