The capacity to produce light has evolved many different times and serves many functions in different species — defense, warning, communication, attraction, camouflage, mimicry, illumination (as listed by one reference).