Why do Rainbows Form?

Refraction of light is what causes Rainbows. Basically you need the sun to be close to the horizon ,a heavy fog or mist that is opposite of the sun. If you are standing between the sun and the rainbow you can see a 180 degree arc of colors.