Only certain species of fungi have the ability to glow. This bioluminescence is a result of a complex chemical reaction involving a substance called luciferin, an enzyme, and oxygen. The exact reasons why some fungi evolved this trait are still under study, but it might help attract insects to spread spores or deter predators.