A rainbow is a natural wonder that takes place from certain features occurring. In order to have a rainbow occur, there must be a spectrum of light in the sky. This comes from a reflection taking place. A reflection is when the waves of light are mirrored. Refraction must also occur and it the light waves must turn to a different direction. This may take place with the reflection.
The last thing that must occur is dispersion which is the light creates a spectrum of different colors. However, a rainbow can be seen at night due to the moon. The light from the moon can cause the reflection, refraction and dispersion, but a rainbow caused by the moon’s light may not be colorful.