The Spectrum is the component colors found in white light. All the color components of white light traveling in the same direction will produce white light. Enough refraction of white light will break it apart into its components colors. This is due to each color component having a different wavelength and is therefore bent to a different angle.
Raindrops floating in the air after a rain-shower refract light traveling through the drops creating the rainbow effect.