A flash at the horizon
A green flash is a brief green or blue-green appearance at the upper edge of the Sun as it rises or sets. It is an atmospheric optical effect, not a separate light source. The phenomenon is easiest to see when the horizon is clear and distant, such as over the ocean, because the Sun's disk is visible close to the horizon for a longer path through the atmosphere.
Earth's atmosphere refracts sunlight, bending different wavelengths by slightly different amounts. Near the horizon, this dispersion can separate colors at the edge of the solar disk. The blue and violet portions are scattered strongly by the atmosphere, so a green rim is more likely to remain visible under suitable conditions.

Why the effect is brief
The flash occurs only when the Sun's upper edge is just above or below the horizon. As the disk moves, the atmospheric layers refract and scatter light differently, and the colored edge disappears within seconds. Temperature inversions and sharp layers of air can strengthen the optical separation, creating more noticeable forms of the flash.
Several types of green flash have been described, based on the appearance of the solar image and the structure of the atmosphere. The exact display varies with the temperature profile, atmospheric clarity and viewing geometry. Not every green-looking sunset is a green flash; clouds, reflections and camera effects can create different colors.

Safe observation and scientific explanation
A green flash is most safely observed when the Sun is naturally close to the horizon and dimmed by the atmosphere. Viewers should never stare at the Sun or use optical equipment without an appropriate solar filter, because eye damage can occur even when the Sun appears low.
The phenomenon has a complete explanation in atmospheric optics, but it is uncommon because the conditions must align. Photographs can help document it, although camera sensors and image processing may exaggerate color. Scientific descriptions rely on geometry and atmospheric refraction rather than folklore.

Factual summary
- Cause: atmospheric refraction and wavelength dispersion
- When: sunrise or sunset near the horizon
- Duration: typically seconds under favorable conditions