A rainbow appears in the sky after rainfall when the sun is shining. It is seen in the part of the sky opposite the sun.
The phenomena of light involved in rainbow formation, in proper sequence, are:
A rainbow cannot be seen from the surface of the moon because:
A rainbow requires sunlight to be refracted and reflected by water droplets in the Earth's atmosphere. On the moon, there is no atmosphere, and hence no water droplets to cause refraction and reflection of sunlight. Therefore, a rainbow cannot be formed on the moon's surface.