A diffraction pattern is formed when waves, such as light, encounter an obstacle or aperture, causing them to bend and interfere with each other, creating a characteristic pattern of bright and dark regions. This phenomenon is a fundamental demonstration of wave behavior and is crucial for understanding wave optics and the wave-particle duality of light.