A quantum (or packet) of energy emitted in the form of electromagnetic radiation. Gamma rays and x-rays are examples of photons.