When light hits a thin film (soap bubble, oil slick), it reflects from both the top and bottom surfaces. The two reflected rays travel different path lengths (2nt cosθ), causing wavelength-dependent interference. Some colors are reinforced while others cancel, producing vivid rainbow patterns. The colors shift as thickness, refractive index, or viewing angle change.