The common firefly is a soft-bodied beetle. They are also called glowworms or lightning bugs for their conspicuous use of bioluminescence during the twilight and at night. It is now understood that the primary purpose for the photic emission is for mate selection. The adults have a variety of ways to communicate with mates in courtships, including emitting a steady glow and a periodic flashing.

There are over 2,000+ described species of this family of insects. Light production in fireflies occurs in specialized light-emitting organs due to the presence of enzymes that act with oxygen to produce light,

Fireflies produce a “cold light”, with no infrared or ultraviolet frequencies. This chemically produced light from their lower abdomen may be various colors including yellow (picture), green, or pale red, with wavelengths from 510 to 670 nanometers. While all known fireflies glow as larvae, only some adults produce lights and the location of the light organ varies among species and between sexes of the same species.

Typically, fireflies are found in temperate and tropic climates, in marshes or in wet wooded areas where their larvae have abundant sources of food. Adults can differ drastically in size depending on the species with the largest being up to 25 mm (1 inch) long.

Today, fireflies are thought to be declining worldwide, facing numerous threats including habitat loss and degradation, light pollution, pesticide use, and climate change.

More Info: en.m.wikipedia.org