Light is a form of energy. The two common ways for creating light are: incandescence and luminescence.
Incandescence is the emission of light due to the high temperature of an object. A bon-fire, as well as light bulbs with filaments produce light because of high temperature.
Luminescence is the emission of light at normal or cooler temperatures. This light is created when some energy source causes an electron of an atom to be "excited" resulting in it jumping to a higher energy level; then the electron releases energy in the form of light and returns to its normal position -"ground state". The energy that excites the electron is generally greater than is the energy of the released light. The glowing rock in the photo fluoresce under black light, which is a source of ultraviolet A. Fluorescence is a form of luminescence in which the material gives off light as long as the energy source that excites the electrons continues to be supplied. When the black light is turned off, the rocks no longer glow.
For more information, see TYPES OF LUMINESCENCE