Answer:
Rainbows occur shortly after it rains. White light (sunlight) consists of each color, each with a different wavelength. The rain partices act like a prism. The light goes into the prsim and refracts into every color. Other waves don't refract this way but certain colors bend more than others. The rain droplets bend the white light into separate colors to make a rainbow.