Explain to me what a rainbow actually is?

A rainbow is an optical phenomenon that occurs by sunlight appearing in the section of the sky directly opposite of the sun.