Rainbows are created by sunlight refracting through rain or other sources of water, which acts like a prism. :)