Dispersion refers to the phenomenon where different wavelengths of light are separated when they pass through a medium, resulting in the formation of a spectrum. This occurs because each wavelength travels at different speeds in a medium, which leads to their deviation at varying angles during refraction. Dispersion is crucial in understanding how light interacts with materials and is essential in applications like prisms and lenses.