A rainbow is an arc of color that appears in the sky when sunlight is reflected and refracted by the tiny water droplets in the atmosphere. The arc of a rainbow is caused by the refraction of sunlight, which separates the light into its component colors.