How a Rainbow Forms
This is a very simplified diagram of how a rainbow forms. Raindrops work like tiny prisms refracting the white light from the sun. Rainbows are seen when a storm passes and the sun shines through the raindrops. They can be seen only when the sun is behind the observer.