Fireflies use their bioluminescence to attract a mate or lure prey. The glowing may also serve as a potential warning to predators.