Electrons can gain the energy it needs by absorbing light. If the electron jumps from the second energy level down to the first energy level, it must give off some energy by emitting light. The atom absorbs or emits light in discrete packets called photons, and each photon has a definite energy.