Rainbows pop up when sunlight gets bent and split into its spectrum of colors by water droplets in the air. This bending of light, or refraction, combines with reflection inside the droplets, painting a colorful arc across the sky.