How Does a Firefly Make Light Without Burning Itself?
A firefly produces light through chemistry rather than heat. Inside specialized organs in its abdomen, a controlled reaction converts stored chemical energy directly into visible light.
The central substance is luciferin. An enzyme called luciferase helps luciferin react with oxygen, using energy supplied by adenosine triphosphate, the molecule cells commonly use to power biological work. The reaction creates an unstable product in an excited energy state. As that product returns to a lower state, it releases energy as a photon of light.
An electric bulb with a hot filament wastes much of its energy as heat. Firefly bioluminescence sends a much larger portion into visible light, so the insect’s glowing organ does not need to become dangerously hot. Scientists once described the process as nearly perfect in efficiency, but later measurements have produced lower estimates. It remains an exceptionally effective biological light source.
A firefly controls its flashes by regulating conditions around the reaction, particularly the delivery of oxygen within its light organ. The timing and pattern carry information. Adults use flashes to locate and recognize suitable mates, and different species produce different rhythms. Some species also imitate the signals of others to lure them close enough to eat.
The glow appears effortless, but each flash is a carefully regulated chemical message. A firefly does not store light inside its body. It assembles light moment by moment from oxygen, cellular energy, and a molecule whose reaction ends by releasing a photon.
Source: Bioluminescence, National Geographic Education - The Chemistry of Bioluminescence, Chemical Society Reviews

Sunset in Kuznetsk Alatau, South Siberia
Source: By Dmitry A. Mottl