Light production in fireflies is due to a type of chemical reaction called bioluminescence. This process occurs in specialized light-emitting organs, usually on a firefly's lower abdomen. The enzyme luciferase acts on the luciferin, in the presence of magnesium ions, ATP, and oxygen to produce light.