White sunlight hits a raindrop, bends inward, reflects off the back wall, and comes out as six colours. Multiply by millions of drops — and you have a rainbow.