When the Sun sets on an unobstructed horizon a phenomenon known as the Green Flash is sometimes visible. The green color is due to the atmosphere working as a prism and breaking the Sun's image into its component colors with the green image being the last to set.