Final answer:
Rainbows are produced by refraction and reflection of light in water droplets, which causes the dispersion of white light into a spectrum of colors.
Step-by-step explanation:
Rainbows are produced by a combination of refraction and reflection. When light enters a drop of water, it is refracted as it passes from air to water, and then reflected at the backside of the drop before reemerging from the front. This causes the white light to be dispersed into a spectrum of colors, resulting in a rainbow.