Chemiluminescence occurs when a chemical reaction yields a product that is in an electronically excited state, and then loses its energy as a photon.
Bioluminescence is a special kind of chemiluminescence in which the chemical reaction takes place within a living organism. The most common examples are the light emitted by fIreflies and glow worms.