they're just discrete packets of electromagnetic radiation. Whenever electromagnetic radiation is produced, so are photons, not complicated