sunlight by water droplets in the atmosphere. When sunlight through water droplets, the light is bent in such a way as to make the colors exist in the light separately.
Each color deflected at different
angles, and the color red is the color of the last bend, while purple is the most first. This phenomenon is what we see as a rainbow.