When the sunlight strikes raindrops in the air, they act as a prism and form a rainbow.