Answer
Bioluminescence is a chemical reaction. It takes place inside the light-producing organ of a glowing creature. Fireflies, for example, make light in their abdomens. The chemical reaction produces energy in the form of photons.
Hope this helps! <3