what causes a rainbow to occur
Rainbows are caused by the splitting of white sunlight into it component colors by raindrops. Some of the light that falls on a water drop enters the drop. As it enters the drop, the color components of the sunlight are refracted (bent) by different amounts depending upon their wavelength (we perceive the different wavelengths as different colors.)