Mg codoping into Eu-doped GaN strongly affects the two dominant optical sites A (620.3 nm) and B (622.3 nm) and dramatically improves the optical characteristics obtained from Eu 3þ ions. To clarify the mechanism of the enhanced emission, the effects of the Mg concentration on the excitation and emission processes were evaluated by considering the excitation power dependence of photoluminescence (PL) and time-resolved PL at various temperatures. The excitation cross section r ex , which reflected the excitation process, did not depend on the Mg concentration but strongly on the optical site, which was attributed to the different energy transfer processes of the two optical sites. r ex for site A was three times larger than that for site B, indicating higher excitation efficiency for site A. Mg codoping dramatically increased the number of Eu ions in site A that remain active at room temperature (RT) and the 5 D 0 lifetime at RT, indicating the suppression of nonradiative components during the emission process. Therefore, the optical properties were markedly enhanced by Mg codoping. V C 2013 American Institute of Physics. [http://dx.