When the light rays from the Sun are incident on water drops hanging in the atmosphere; these rays are dispersed into seven colours of white light and internally reflected by the drops. This dispersion and internal reflection results in production of colour arcs which appear hanging in the sky and known as rainbow. So the solar rays incident on the rain drops are refracted, internally reflected and transmitted to form the rainbow.