The ionization energy of nitrogen is more than that of oxygen because
Nitrogen has half filled p-orbitals
The first ionization energy is the energy needed to remove the outermost, or highest energy, electron from a neutral atom in the gas phase. It is more for nitrogen than oxygen because nitrogen is more stable due to its half-filled electronic configuration.