We present here the passivation mechanism and the chemistry of an (NH4)(2)S-x-treated Mg-doped GaN surface examined by using x-ray photoelectron spectroscopy. The native oxide on the GaN surface can be removed by the (NH4)(2)S-x treatment process. The S a