Electron orbitals are separated into various shells which have strong impacts on the ionization energies of the various electrons. For instance, let us look at aluminum. Aluminum is the first element of its period with electrons in the 3p shell. This makes the first ionization energy comparably low to the other elements in the same period, because it only has to get rid of one electron to make a stable 3s shell, the new valence electron shell. However, once you've moved past the first ionization energy into the second ionization energy, there is a large jump in the amount of energy required to expel another electron. This is because you now are trying to take an electron from a fairly stable and full 3s electron shell.