It is reflected by the surface of the prism. Then refracted through the the prism but also the light is dispersed, meaning that it shows the colours of the spectrum.
Didn't find the answer you were looking for?