We report the effects of ex situ thermal annealing on the deep-level defects and the minority-carrier electron diffusion length in Be-doped, p-type In0.03Ga0.97As0.99N0.01 grown by solid source molecular-beam epitaxy. Deep-level transient spectroscopy measurements reveal two majority-carrier hole traps, HT1 (0.18 eV) and HT4 (0.59 eV), and two minority-carrier electron traps, ET1 (0.09 eV) and ET3 (0.41 eV), in the as-grown sample. For the sample with postgrowth thermal annealing, the overall deep-level defect-concentration is decreased. Two hole traps, HT2 (0.39 eV) and HT3 (0.41 eV), and one electron trap, ET2 (0.19 eV), are observed. We found that the minority-carrier electron diffusion length increases by ∼30% and the leakage current of the InGaAsN∕GaAsp-n junction decreases by 2–3 orders after thermal annealing. An increase of the net acceptor concentration after annealing is also observed and can be explained by a recently proposed three-center-complex model.