A rainbow is caused by sunlight and atmospheric conditions. light enters a water droplet, slowing down and bending as it goes from air to denser water. The light reflects off the inside of the droplet, seperating into its component wavelengths-or colors when light exits the droplet, it makes a rainbow