Nitrogen-doped and nitrogen-implanted ZnSe epitaxial layers grown by molecular-beam epitaxy are studied through photoluminescence ͑PL͒, selective PL, and PL-excitation spectroscopies. The results are compared with those obtained from samples implanted with other impurities. All N-containing samples, and only those, give rise to transitions corresponding to a dominant shallow donor with a binding energy of 29.1 meV. This donor is not a residual impurity in ZnSe but is associated with nitrogen. We propose that it involves nitrogen located on interstitial sites. In addition, the deep compensating donor is already present in lightly doped samples. Our results demonstrate that N doping of ZnSe is accompanied by the concomitant creation of N-related defects, both shallow and deep ones, from the onset of doping. An inescapable dramatic compensation of N acceptors ensues. ͓S0163-1829͑97͒51728-0͔The doping properties of wide-band-gap semiconductors are currently under focus driven by both the perspective to fabricate efficient short-wavelength optoelectronic devices and the aim to elucidate the intricate processes at work on a microscopic scale during doping and/or carrier compensation. ZnSe is a particularly enticing material in this respect since its p-type doping has been challenging for decades. 1,2 Indeed, only recently did plasma-activated nitrogen emerge as the ͑still͒ unique dopant suitable for the growth of p-type ZnSe by molecular-beam epitaxy ͑MBE͒, 3,4 which remains the only technique allowing to reproducibly grow stable p-type ZnSe films. The highest free-hole concentration reported so far is N a ϪN d ϳ1 -2ϫ10 18 cm Ϫ3 . 5 N-doped layers, however, are always at least partially compensated, even at low doping levels. 6 Compensation manifests itself in the low-temperature photoluminescence ͑PL͒ spectra of ZnSe:N layers by the presence of two distinct series of donor-acceptor pair ͑DAP͒ bands. 7-9 The first series, D s AP, with a zero-phonon line at about 2.70 eV arises from recombinations between a shallow donor ͑D s ͒ and the nitrogen acceptor, while the second series, D d AP, with a zero-phonon line at about 2.68 eV arises from recombinations between a deep donor ͑D d ͒ and the nitrogen acceptor. [7][8][9] Most studies of carrier compensation in ZnSe:N material have focused up to now on the deep compensating donor. Many theoretical models have been proposed 10-13 but experimental results agree well with a deep donor consisting of a N-related complex involving Se vacancies. 7,9,14 We have precisely determined its electronic structure and deduced a binding energy of 45.2Ϯ0.3 meV. 15 The shallow compensating donor responsible for the presence of the D s AP bands in the PL spectra, on the other hand, has attracted very little attention and in the absence of detailed investigations it is commonly assumed to be a residual impurity in ZnSe. 7-9,16 Consequently, it is generally supposed that N would initially incorporate exclusively as an acceptor on Se substitutional sites, the presence of residual donors giving ris...