Photon boost the electron to jump into a higher level energy orbit, the energy is released in light form as the electron returns to its ground level.