How does a prism work?
You probably know that with the help of a prism you can separate white light in the different colors of the rainbow. Light is an electromagnetic wave and the different colors are electromagnetic waves with a different wavelength, which are broken (change direction) the moment they enter the glass of the prism and leave it again. We call this refraction. It results in the different colors of the rainbow.