A rainbow is formed as a result of refraction, reflection of light in water droplets. It can be observed when sunlight hits a rain cloud leaving us.The image of a rainbow is never stable. Its dynamism is associated with the movement of rain masses and their location relative to the Sun and the observer.