Dispersion of light: The splitting of white light into seven colours on passing through a transparent medium like glass prism is called dispersion of light.
Diagram : Dispersion of light
We get different colours because each colour of light has different bending ability when they pass through the glass prism.