Refraction is the bending of light when it passes from one medium to another. Dispersion is the splitting of white light into its constituent colors when it passes through a prism due to different refractive indices for different wavelengths.