What happens when adding energy to an atom?
Various things can potentially happen, but one thing that can happen is that the atom can give away an electron. The energy required for an atom to lose and electron is called the ionization energy of the atom. Once enough energy is added, the atom will release one of its valence electrons.
I hope that helps!