During a formation of a rainbow, the phenomena of dispersion,refraction and internal reflection are involved.
A rainbow is a natural spectrum after a shower of rain(every water droplet acts as a small prism) formed due to the dispersion,refraction and internal reflection of different colours.